sconsole

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

commit a1b660a251844d4ca2c43cb29b61e17520c2044c
parent 6ca9f93dbfe3f5373b5477d7a4100b6c874b8d93
Author: Brian Swetland <swetland@frotz.net>
Date:   Thu, 30 Apr 2015 15:09:26 -0700

Merge pull request #1 from ianloic/master

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;