forked from Archive/PX4-Autopilot
gps: fix compiling on mac
This fixes the following compile error on Mac: src/drivers/gps/gps.cpp:562:23: fatal error: use of undeclared identifier 'B921600' case 921600: speed = B921600; break; ^
This commit is contained in:
parent
bfd5a90a5d
commit
a29820bdf8
|
@ -559,6 +559,10 @@ int GPS::setBaudrate(unsigned baud)
|
|||
|
||||
case 460800: speed = B460800; break;
|
||||
|
||||
#ifndef B921600
|
||||
#define B921600 921600
|
||||
#endif
|
||||
|
||||
case 921600: speed = B921600; break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue