mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-22 22:32:11 +08:00
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:
committed by
Daniel Agar
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:
|
||||
|
||||
Reference in New Issue
Block a user