mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 01:04:19 +08:00
tonealrmsim: better output of tone_alarm in SITL
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user