From c41e76b8e629f4c6b7425ad5972b20bf729e6ddf Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Sat, 2 Nov 2024 19:19:19 +0800 Subject: [PATCH] Only use GPS_BAUDRATE if specified in variant.h --- src/gps/GPS.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gps/GPS.h b/src/gps/GPS.h index b95d0f76b..483cb802d 100644 --- a/src/gps/GPS.h +++ b/src/gps/GPS.h @@ -77,8 +77,8 @@ class GPS : private concurrency::OSThread #endif private: #if GPS_BAUDRATE_FIXED - // if GPS_BAUDRATE is specified in variant, try that first. - const int serialSpeeds[4] = {GPS_BAUDRATE, 9600, 115200, 38400}; + // if GPS_BAUDRATE is specified in variant, only try that. + const int serialSpeeds[1] = {GPS_BAUDRATE}; #else const int serialSpeeds[3] = {9600, 115200, 38400}; #endif