From a29820bdf80458e9f864c1624c94e075571ae4a4 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Tue, 30 Nov 2021 19:50:25 -0600 Subject: [PATCH] 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; ^ --- src/drivers/gps/gps.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/drivers/gps/gps.cpp b/src/drivers/gps/gps.cpp index 2f679ca9b7..e8fa23cfd1 100644 --- a/src/drivers/gps/gps.cpp +++ b/src/drivers/gps/gps.cpp @@ -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: