From c79650a8d8de4fd4d150ccdd9927451d0dfbf11e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 29 Aug 2018 13:46:30 +1000 Subject: [PATCH] AP_Notify: fixed remote play tune --- libraries/AP_Notify/ToneAlarm.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_Notify/ToneAlarm.cpp b/libraries/AP_Notify/ToneAlarm.cpp index 8307d4fe0c..bcc51fca5a 100644 --- a/libraries/AP_Notify/ToneAlarm.cpp +++ b/libraries/AP_Notify/ToneAlarm.cpp @@ -400,6 +400,7 @@ void AP_ToneAlarm::handle_play_tune(mavlink_message_t *msg) len2 = MIN((sizeof(_tone_buf)-1)-len, len2); strncpy(_tone_buf+len, packet.tune2, len2); _tone_buf[sizeof(_tone_buf)-1] = 0; + _mml_player.play(_tone_buf); _sem->give(); } }