diff --git a/src/platforms/posix/drivers/tonealrmsim/tone_alarm.cpp b/src/platforms/posix/drivers/tonealrmsim/tone_alarm.cpp index 44f4168c4a..961ece334d 100644 --- a/src/platforms/posix/drivers/tonealrmsim/tone_alarm.cpp +++ b/src/platforms/posix/drivers/tonealrmsim/tone_alarm.cpp @@ -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]); } }