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:
David Lechner 2021-11-30 19:50:25 -06:00 committed by Daniel Agar
parent bfd5a90a5d
commit a29820bdf8
1 changed files with 4 additions and 0 deletions

View File

@ -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: