From 9f4d50a01827295dada303c9190c4c51ea7057fa Mon Sep 17 00:00:00 2001 From: Jonathan Giles Date: Mon, 13 Jun 2022 18:11:30 -0400 Subject: [PATCH] Change from tty.usb* to cu.usb* for more consistent behavior on OSX --- src/platforms/pc/serial_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/pc/serial_unix.c b/src/platforms/pc/serial_unix.c index 1e22ff0..2365399 100644 --- a/src/platforms/pc/serial_unix.c +++ b/src/platforms/pc/serial_unix.c @@ -79,7 +79,7 @@ int serial_open(BMP_CL_OPTIONS_t *cl_opts, char *serial) DEBUG_WARN("No serial device found\n"); return -1; } else { - sprintf(name, "/dev/tty.usbmodem%s1", serial); + sprintf(name, "/dev/cu.usbmodem%s1", serial); } } else { strncpy(name, cl_opts->opt_device, sizeof(name) - 1);