mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
Notify: ToneAlarm fix to stopping continuous tones
This commit is contained in:
parent
ea5c24b70b
commit
e2071a4630
@ -105,7 +105,7 @@ void ToneAlarm_PX4::play_string(const char *str) {
|
||||
|
||||
void ToneAlarm_PX4::stop_cont_tone() {
|
||||
if(_cont_tone_playing == _tone_playing) {
|
||||
play_string("stop");
|
||||
play_string("");
|
||||
_tone_playing = -1;
|
||||
}
|
||||
_cont_tone_playing = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user