mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 04:13:33 +08:00
Commander: Play startup tune if preflight checks are good, play alarm otherwise
This commit is contained in:
committed by
Lorenz Meier
parent
6f338eb1b2
commit
c5a178a777
@@ -890,8 +890,9 @@ tone_alarm_main(int argc, char *argv[])
|
||||
if (argc > 1) {
|
||||
const char *argv1 = argv[1];
|
||||
|
||||
if (!strcmp(argv1, "start"))
|
||||
play_tune(TONE_STARTUP_TUNE);
|
||||
if (!strcmp(argv1, "start")) {
|
||||
play_tune(TONE_STOP_TUNE);
|
||||
}
|
||||
|
||||
if (!strcmp(argv1, "stop"))
|
||||
play_tune(TONE_STOP_TUNE);
|
||||
|
||||
Reference in New Issue
Block a user