AP_Notify: fixed remote play tune

This commit is contained in:
Andrew Tridgell 2018-08-29 13:46:30 +10:00
parent 78be026d83
commit c79650a8d8

View File

@ -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();
}
}