tonealrmsim: better output of tone_alarm in SITL

This commit is contained in:
Julian Oes
2016-06-03 14:04:14 +01:00
committed by Lorenz Meier
parent 5e4e896dad
commit a548b5bd5e
@@ -657,8 +657,6 @@ ToneAlarm::devIOCTL(unsigned long cmd, unsigned long arg)
/* decide whether to increase the alarm level to cmd or leave it alone */
switch (cmd) {
case TONE_SET_ALARM:
PX4_INFO("TONE_SET_ALARM %lu", arg);
if (arg < TONE_NUMBER_OF_TUNES) {
if (arg == TONE_STOP_TUNE) {
// stop the tune
@@ -673,6 +671,7 @@ ToneAlarm::devIOCTL(unsigned long cmd, unsigned long arg)
/* play the selected tune */
_default_tune_number = arg;
start_tune(_default_tunes[arg]);
PX4_INFO("%s", _tune_names[arg]);
}
}