Unify GPS fix detection

pull/11/head
Mikael Nousiainen 2022-02-26 19:26:05 +02:00
rodzic 06e85235d9
commit d8f7584a99
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -34,7 +34,7 @@ void handle_timer_tick()
if (leds_enabled) {
// Blink fast until GPS fix is acquired
if (counter % (SYSTEM_SCHEDULER_TIMER_TICKS_PER_SECOND / 4) == 0) {
if (current_gps_data.fix >= 3) {
if (current_gps_data.fix_ok) {
if (counter == 0) {
led_state = !led_state;
system_set_green_led(led_state);