aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/commander/commander.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/commander/commander.c b/src/modules/commander/commander.c
index cd2ef8137..aab8f3e04 100644
--- a/src/modules/commander/commander.c
+++ b/src/modules/commander/commander.c
@@ -1519,7 +1519,7 @@ int commander_thread_main(int argc, char *argv[])
/* GPS lock */
led_on(LED_BLUE);
- } else if (counter % (1000000 / COMMANDER_MONITORING_INTERVAL) == 0) {
+ } else if ((counter + 4) % (1000000 / COMMANDER_MONITORING_INTERVAL) == 0) {
/* no GPS lock, but GPS module is aquiring lock */
led_toggle(LED_BLUE);
}
@@ -1535,8 +1535,8 @@ int commander_thread_main(int argc, char *argv[])
led_toggle(LED_BLUE);
} else if (bat_remain < 0.3f && (low_voltage_counter > LOW_VOLTAGE_BATTERY_COUNTER_LIMIT)) {
- /* toggle error (red) at 5 Hz on low battery or error */
- led_toggle(LED_BLUE);
+ /* toggle arming (red) at 5 Hz on low battery or error */
+ led_toggle(LED_AMBER);
} else {
// /* Constant error indication in standby mode without GPS */