commander: Compile fix

This commit is contained in:
Lorenz Meier
2015-05-30 19:06:05 -07:00
parent 164a1178b8
commit db3ac5f3ac
+2 -2
View File
@@ -2056,12 +2056,12 @@ int commander_thread_main(int argc, char *argv[])
set_tune(TONE_ARMING_WARNING_TUNE);
arm_tune_played = true;
} else if (status.hil_state != vehicle_status_s::HIL_STATE_ON) &&
} else if ((status.hil_state != vehicle_status_s::HIL_STATE_ON) &&
status.battery_warning == vehicle_status_s::VEHICLE_BATTERY_WARNING_CRITICAL) {
/* play tune on battery critical */
set_tune(TONE_BATTERY_WARNING_FAST_TUNE);
} else if (status.hil_state != vehicle_status_s::HIL_STATE_ON) &&
} else if ((status.hil_state != vehicle_status_s::HIL_STATE_ON) &&
(status.battery_warning == vehicle_status_s::VEHICLE_BATTERY_WARNING_LOW || status.failsafe)) {
/* play tune on battery warning or failsafe */
set_tune(TONE_BATTERY_WARNING_SLOW_TUNE);