[tools] bluegiga_usb_dongle: fix compilation/baudrate for OSX

see #1303
This commit is contained in:
Felix Ruess
2015-08-25 23:12:38 +02:00
parent b5d76323dd
commit 07eb23146d
+8 -5
View File
@@ -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
/*