diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-08-19 15:09:06 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-08-19 15:09:06 +0200 |
commit | a9743f04be59aee7bb96a5bb99ae8d8155eb19de (patch) | |
tree | 24e5e3329b8c906f89e9899c0b1cbb6ba0cddf65 /src/modules/commander | |
parent | 1ae5a6ac1d3da98e5612b77ff28afa86669c287f (diff) | |
download | px4-firmware-a9743f04be59aee7bb96a5bb99ae8d8155eb19de.tar.gz px4-firmware-a9743f04be59aee7bb96a5bb99ae8d8155eb19de.tar.bz2 px4-firmware-a9743f04be59aee7bb96a5bb99ae8d8155eb19de.zip |
Fixed status changed flag
Diffstat (limited to 'src/modules/commander')
-rw-r--r-- | src/modules/commander/commander.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index daab7e436..98aab8788 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -1317,6 +1317,8 @@ int commander_thread_main(int argc, char *argv[]) if (arming_state_changed || main_state_changed || navigation_state_changed) { mavlink_log_info(mavlink_fd, "[cmd] state: arm %d, main %d, nav %d", status.arming_state, status.main_state, status.navigation_state); status_changed = true; + } else { + status_changed = false; } hrt_abstime t1 = hrt_absolute_time(); @@ -1446,8 +1448,6 @@ toggle_status_leds(vehicle_status_s *status, actuator_armed_s *armed, bool chang if (changed) { - warnx("changed"); - int i; rgbled_pattern_t pattern; memset(&pattern, 0, sizeof(pattern)); |