mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-24 11:14:26 +03:00
Fix DTMF Dolphin
Add forgotten scene and menu item @litui check this commit
This commit is contained in:
parent
a6886b096e
commit
7e8bf03b25
@ -10,6 +10,7 @@ typedef enum {
|
|||||||
DTMF_DOLPHIN_TONE_BLOCK_BLUEBOX,
|
DTMF_DOLPHIN_TONE_BLOCK_BLUEBOX,
|
||||||
DTMF_DOLPHIN_TONE_BLOCK_REDBOX_US,
|
DTMF_DOLPHIN_TONE_BLOCK_REDBOX_US,
|
||||||
DTMF_DOLPHIN_TONE_BLOCK_REDBOX_UK,
|
DTMF_DOLPHIN_TONE_BLOCK_REDBOX_UK,
|
||||||
|
DTMF_DOLPHIN_TONE_BLOCK_REDBOX_CA,
|
||||||
DTMF_DOLPHIN_TONE_BLOCK_MISC,
|
DTMF_DOLPHIN_TONE_BLOCK_MISC,
|
||||||
} DTMFDolphinToneSection;
|
} DTMFDolphinToneSection;
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ typedef enum {
|
|||||||
DTMFDolphinEventStartBluebox,
|
DTMFDolphinEventStartBluebox,
|
||||||
DTMFDolphinEventStartRedboxUS,
|
DTMFDolphinEventStartRedboxUS,
|
||||||
DTMFDolphinEventStartRedboxUK,
|
DTMFDolphinEventStartRedboxUK,
|
||||||
|
DTMFDolphinEventStartRedboxCA,
|
||||||
DTMFDolphinEventStartMisc,
|
DTMFDolphinEventStartMisc,
|
||||||
DTMFDolphinEventPlayTones,
|
DTMFDolphinEventPlayTones,
|
||||||
DTMFDolphinEventStopTones,
|
DTMFDolphinEventStopTones,
|
||||||
|
@ -22,6 +22,7 @@ enum DTMFDolphinSceneState {
|
|||||||
DTMFDolphinSceneStateBluebox,
|
DTMFDolphinSceneStateBluebox,
|
||||||
DTMFDolphinSceneStateRedboxUS,
|
DTMFDolphinSceneStateRedboxUS,
|
||||||
DTMFDolphinSceneStateRedboxUK,
|
DTMFDolphinSceneStateRedboxUK,
|
||||||
|
DTMFDolphinSceneStateRedboxCA,
|
||||||
DTMFDolphinSceneStateMisc,
|
DTMFDolphinSceneStateMisc,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -17,6 +17,9 @@ void dtmf_dolphin_scene_dialer_on_enter(void* context) {
|
|||||||
case DTMFDolphinSceneStateRedboxUK:
|
case DTMFDolphinSceneStateRedboxUK:
|
||||||
dtmf_dolphin_data_set_current_section(DTMF_DOLPHIN_TONE_BLOCK_REDBOX_UK);
|
dtmf_dolphin_data_set_current_section(DTMF_DOLPHIN_TONE_BLOCK_REDBOX_UK);
|
||||||
break;
|
break;
|
||||||
|
case DTMFDolphinSceneStateRedboxCA:
|
||||||
|
dtmf_dolphin_data_set_current_section(DTMF_DOLPHIN_TONE_BLOCK_REDBOX_CA);
|
||||||
|
break;
|
||||||
case DTMFDolphinSceneStateMisc:
|
case DTMFDolphinSceneStateMisc:
|
||||||
dtmf_dolphin_data_set_current_section(DTMF_DOLPHIN_TONE_BLOCK_MISC);
|
dtmf_dolphin_data_set_current_section(DTMF_DOLPHIN_TONE_BLOCK_MISC);
|
||||||
break;
|
break;
|
||||||
|
@ -17,6 +17,9 @@ static void dtmf_dolphin_scene_start_main_menu_enter_callback(void* context, uin
|
|||||||
cust_event = DTMFDolphinEventStartRedboxUK;
|
cust_event = DTMFDolphinEventStartRedboxUK;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
|
cust_event = DTMFDolphinEventStartRedboxCA;
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
cust_event = DTMFDolphinEventStartMisc;
|
cust_event = DTMFDolphinEventStartMisc;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -38,6 +41,7 @@ void dtmf_dolphin_scene_start_on_enter(void* context) {
|
|||||||
variable_item_list_add(var_item_list, "Bluebox", 0, NULL, context);
|
variable_item_list_add(var_item_list, "Bluebox", 0, NULL, context);
|
||||||
variable_item_list_add(var_item_list, "Redbox (US)", 0, NULL, context);
|
variable_item_list_add(var_item_list, "Redbox (US)", 0, NULL, context);
|
||||||
variable_item_list_add(var_item_list, "Redbox (UK)", 0, NULL, context);
|
variable_item_list_add(var_item_list, "Redbox (UK)", 0, NULL, context);
|
||||||
|
variable_item_list_add(var_item_list, "Redbox (CA)", 0, NULL, context);
|
||||||
variable_item_list_add(var_item_list, "Misc", 0, NULL, context);
|
variable_item_list_add(var_item_list, "Misc", 0, NULL, context);
|
||||||
|
|
||||||
variable_item_list_set_selected_item(
|
variable_item_list_set_selected_item(
|
||||||
@ -67,6 +71,9 @@ bool dtmf_dolphin_scene_start_on_event(void* context, SceneManagerEvent event) {
|
|||||||
case DTMFDolphinEventStartRedboxUK:
|
case DTMFDolphinEventStartRedboxUK:
|
||||||
sc_state = DTMFDolphinSceneStateRedboxUK;
|
sc_state = DTMFDolphinSceneStateRedboxUK;
|
||||||
break;
|
break;
|
||||||
|
case DTMFDolphinEventStartRedboxCA:
|
||||||
|
sc_state = DTMFDolphinSceneStateRedboxCA;
|
||||||
|
break;
|
||||||
case DTMFDolphinEventStartMisc:
|
case DTMFDolphinEventStartMisc:
|
||||||
sc_state = DTMFDolphinSceneStateMisc;
|
sc_state = DTMFDolphinSceneStateMisc;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user