From 04f00ea513a651b0ecd43bdca27688c7a20f9046 Mon Sep 17 00:00:00 2001 From: jflyper Date: Mon, 27 Nov 2017 00:42:20 +0900 Subject: [PATCH] Convert baudrate index into value when calling openSerialPort --- src/main/io/gps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/io/gps.c b/src/main/io/gps.c index c0f409f7b..10e29acd0 100755 --- a/src/main/io/gps.c +++ b/src/main/io/gps.c @@ -285,7 +285,7 @@ void gpsInit(void) #endif // no callback - buffer will be consumed in gpsUpdate() - gpsPort = openSerialPort(gpsPortConfig->identifier, FUNCTION_GPS, NULL, NULL, gpsInitData[gpsData.baudrateIndex].baudrateIndex, mode, SERIAL_NOT_INVERTED); + gpsPort = openSerialPort(gpsPortConfig->identifier, FUNCTION_GPS, NULL, NULL, baudRates[gpsInitData[gpsData.baudrateIndex].baudrateIndex], mode, SERIAL_NOT_INVERTED); if (!gpsPort) { featureClear(FEATURE_GPS); return;