mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
parent
d26e47ff02
commit
3fb822d877
1 changed files with 3 additions and 3 deletions
|
@ -1447,12 +1447,12 @@ static uint8_t _ck_b;
|
||||||
|
|
||||||
// State machine state
|
// State machine state
|
||||||
static bool _skip_packet;
|
static bool _skip_packet;
|
||||||
static uint8_t _step;
|
static uint8_t _step = 0;
|
||||||
static uint8_t _msg_id;
|
static uint8_t _msg_id;
|
||||||
static uint16_t _payload_length;
|
static uint16_t _payload_length;
|
||||||
static uint16_t _payload_counter;
|
static uint16_t _payload_counter;
|
||||||
|
|
||||||
static bool next_fix;
|
static bool next_fix = false;
|
||||||
static uint8_t _class;
|
static uint8_t _class;
|
||||||
|
|
||||||
// do we have new position information?
|
// do we have new position information?
|
||||||
|
@ -1922,7 +1922,7 @@ void onGpsNewData(void)
|
||||||
|
|
||||||
lastTimeUs = timeUs;
|
lastTimeUs = timeUs;
|
||||||
|
|
||||||
if (!(STATE(GPS_FIX) && gpsSol.numSat >= GPS_MIN_SAT_COUNT)) {
|
if (!STATE(GPS_FIX)) {
|
||||||
// if we don't have a 3D fix and the minimum sats, don't give data to GPS rescue
|
// if we don't have a 3D fix and the minimum sats, don't give data to GPS rescue
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue