mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
fix formatting
This commit is contained in:
parent
11abec88ed
commit
ab49f4efd2
1 changed files with 4 additions and 3 deletions
|
@ -123,12 +123,13 @@ void gpsInitHardware(void)
|
|||
// 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 (!isSerialTransmitBufferEmpty(core.gpsport))
|
||||
break;
|
||||
|
||||
if (gpsData.state == GPS_INITIALIZING) {
|
||||
uint32_t m = millis();
|
||||
if (m - gpsData.state_ts < GPS_BAUD_DELAY) return;
|
||||
if (m - gpsData.state_ts < GPS_BAUD_DELAY)
|
||||
return;
|
||||
|
||||
if (gpsData.state_position < GPS_INIT_ENTRIES) {
|
||||
// try different speed to INIT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue