mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Notify: fixed remote play tune
This commit is contained in:
parent
78be026d83
commit
c79650a8d8
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user