mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
GPS: clean up NMEA autodetect baud. -1 no longer used, it will cycle through available baud rates if no data is received anyway
This commit is contained in:
parent
0f84e41f4f
commit
2ca082f09c
3 changed files with 2 additions and 5 deletions
|
@ -113,9 +113,6 @@ int main(void)
|
|||
} else { // spektrum and GPS are mutually exclusive
|
||||
// Optional GPS - available in both PPM and PWM input mode, in PWM input, reduces number of available channels by 2.
|
||||
// gpsInit will return if FEATURE_GPS is not enabled.
|
||||
// Sanity check below - protocols other than NMEA do not support baud rate autodetection
|
||||
if (mcfg.gps_type > 0 && mcfg.gps_baudrate < 0)
|
||||
mcfg.gps_baudrate = 0;
|
||||
gpsInit(mcfg.gps_baudrate);
|
||||
}
|
||||
#ifdef SONAR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue