mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
gps: wait for gps write buffer to empty before writing more
This commit is contained in:
parent
567e7f7cc8
commit
091c77592a
1 changed files with 5 additions and 0 deletions
|
@ -117,6 +117,11 @@ void gpsInitHardware(void)
|
|||
|
||||
case GPS_UBLOX:
|
||||
// UBX will run at mcfg.baudrate, it shouldn't be "autodetected". So here we force it to that rate
|
||||
|
||||
// Wait until GPS transmit buffer is empty
|
||||
if (!isSerialTransmitBufferEmpty(core.gpsport))
|
||||
break;
|
||||
|
||||
if (gpsData.state == GPS_INITIALIZING) {
|
||||
gpsData.state_position++;
|
||||
if (gpsData.state_position <= GPS_INIT_ENTRIES) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue