Merge pull request #4666 from jflyper/bfdev-fix-gps-openSerialPort
[GPS] Convert baudrate index into value when calling openSerialPort
This commit is contained in:
commit
7f8f9067d0
|
@ -285,7 +285,7 @@ void gpsInit(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// no callback - buffer will be consumed in gpsUpdate()
|
// 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) {
|
if (!gpsPort) {
|
||||||
featureClear(FEATURE_GPS);
|
featureClear(FEATURE_GPS);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue