mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
libtunes: Handle notification tunes as high priority
This commit is contained in:
parent
3f123acd7e
commit
591f9a8a38
@ -105,12 +105,12 @@ void Tunes::set_control(const tune_control_s &tune_control)
|
||||
switch (tune_control.tune_id) {
|
||||
case tune_control_s::TUNE_ID_STARTUP:
|
||||
case tune_control_s::TUNE_ID_ERROR:
|
||||
reset_playing_tune = true;
|
||||
config_tone();
|
||||
|
||||
case tune_control_s::TUNE_ID_NOTIFY_POSITIVE:
|
||||
case tune_control_s::TUNE_ID_NOTIFY_NEUTRAL:
|
||||
case tune_control_s::TUNE_ID_NOTIFY_NEGATIVE:
|
||||
reset_playing_tune = true;
|
||||
config_tone();
|
||||
|
||||
case tune_control_s::TUNE_ID_ARMING_WARNING:
|
||||
case tune_control_s::TUNE_ID_BATTERY_WARNING_SLOW:
|
||||
case tune_control_s::TUNE_ID_BATTERY_WARNING_FAST:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user