mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +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
|
// 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
|
// Wait until GPS transmit buffer is empty
|
||||||
if (!isSerialTransmitBufferEmpty(core.gpsport))
|
if (!isSerialTransmitBufferEmpty(core.gpsport))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (gpsData.state == GPS_INITIALIZING) {
|
if (gpsData.state == GPS_INITIALIZING) {
|
||||||
uint32_t m = millis();
|
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) {
|
if (gpsData.state_position < GPS_INIT_ENTRIES) {
|
||||||
// try different speed to INIT
|
// try different speed to INIT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue