kopia lustrzana https://github.com/mikaelnousiainen/RS41ng
Unify GPS fix detection
rodzic
06e85235d9
commit
d8f7584a99
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue