sconsole

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 95cd07b8a21172a92592515f9f98e1d98184c620
parent 6ca9f93dbfe3f5373b5477d7a4100b6c874b8d93
Author: Ian McKellar <ianloic@google.com>
Date:   Thu, 30 Apr 2015 14:14:53 -0700

On MacOS X default the device to /dev/tty.usbserial

Diffstat:
Msconsole.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/sconsole.c b/sconsole.c @@ -228,7 +228,11 @@ int main(int argc, char *argv[]) { struct pollfd fds[2]; int speed = B115200; +#ifdef __APPLE__ + const char *device = "/dev/tty.usbserial"; +#else const char *device = "/dev/ttyUSB0"; +#endif const char *logfile = "console.log"; int fd, n; int map_nl_to_cr = 0;