gps: wait for gps write buffer to empty before writing more
This commit is contained in:
parent
567e7f7cc8
commit
091c77592a
|
@ -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…
Reference in New Issue