Browse Source

AP_Notify: fixed remote play tune

master
Andrew Tridgell 7 years ago
parent
commit
c79650a8d8
  1. 1
      libraries/AP_Notify/ToneAlarm.cpp

1
libraries/AP_Notify/ToneAlarm.cpp

@ -400,6 +400,7 @@ void AP_ToneAlarm::handle_play_tune(mavlink_message_t *msg) @@ -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…
Cancel
Save