Change from tty.usb* to cu.usb* for more consistent behavior on OSX
This commit is contained in:
parent
b4c81f6302
commit
9f4d50a018
|
@ -79,7 +79,7 @@ int serial_open(BMP_CL_OPTIONS_t *cl_opts, char *serial)
|
||||||
DEBUG_WARN("No serial device found\n");
|
DEBUG_WARN("No serial device found\n");
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
sprintf(name, "/dev/tty.usbmodem%s1", serial);
|
sprintf(name, "/dev/cu.usbmodem%s1", serial);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
strncpy(name, cl_opts->opt_device, sizeof(name) - 1);
|
strncpy(name, cl_opts->opt_device, sizeof(name) - 1);
|
||||||
|
|
Loading…
Reference in New Issue