Change from tty.usb* to cu.usb* for more consistent behavior on OSX

This commit is contained in:
Jonathan Giles 2022-06-13 18:11:30 -04:00 committed by Piotr Esden-Tempski
parent b4c81f6302
commit 9f4d50a018
1 changed files with 1 additions and 1 deletions

View File

@ -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);