libtunes: Handle notification tunes as high priority

This commit is contained in:
Simone Guscetti 2017-02-27 17:19:31 +01:00 committed by Daniel Agar
parent 3f123acd7e
commit 591f9a8a38

View File

@ -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: