From 95f4b515ef2f9a5473400229a44a31badc54188f Mon Sep 17 00:00:00 2001 From: Chris Osborn Date: Sun, 25 Apr 2021 06:47:46 -0700 Subject: [PATCH] Don't use high speed Linux baud rates when they haven't been defined. --- src/serial.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/serial.c b/src/serial.c index 42a0b83..5530dcb 100644 --- a/src/serial.c +++ b/src/serial.c @@ -16,12 +16,16 @@ int ser_get_bps_const(int speed) LOG(LOG_DEBUG, "Checking speed: %d", speed); switch (speed) { +#ifdef B921600 case 921600: bps_rate = B921600; break; +#endif +#ifdef B460800 case 460800: bps_rate = B460800; break; +#endif case 230400: bps_rate = B230400; break;