mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-24 13:55:51 +08:00
[tools] bluegiga_usb_dongle: fix compilation/baudrate for OSX
see #1303
This commit is contained in:
@@ -257,14 +257,17 @@ int uart_open(char *port)
|
||||
tcgetattr(serial_handle, &options);
|
||||
|
||||
/*
|
||||
* Set the baud rates to 115200...
|
||||
* Set the baud rates...
|
||||
*
|
||||
* KLUDGE: Faster baudates not defined in MacOS X
|
||||
*/
|
||||
//cfsetispeed(&options, B115200);
|
||||
//cfsetospeed(&options, B115200);
|
||||
|
||||
#ifdef __APPLE__
|
||||
cfsetispeed(&options, B230400);
|
||||
cfsetospeed(&options, B230400);
|
||||
#else
|
||||
cfsetispeed(&options, B921600);
|
||||
cfsetospeed(&options, B921600);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user