Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Fixed misc menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
litui committed Oct 16, 2022
1 parent 85a5fed commit 5e8e559
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions scenes/dtmf_dolphin_scene_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,26 @@

static void dtmf_dolphin_scene_start_main_menu_enter_callback(void* context, uint32_t index) {
DTMFDolphinApp* app = context;
if (index == DTMFDolphinSceneStateDialer) {
view_dispatcher_send_custom_event(
app->view_dispatcher,
DTMFDolphinEventStartDialer
);
} else if (index == DTMFDolphinSceneStateBluebox) {
view_dispatcher_send_custom_event(
app->view_dispatcher,
DTMFDolphinEventStartBluebox
);
} else if (index == DTMFDolphinSceneStateMisc) {
view_dispatcher_send_custom_event(
app->view_dispatcher,
DTMFDolphinEventStartMisc
);
uint8_t cust_event = 255;
switch (index)
{
case 0:
cust_event = DTMFDolphinEventStartDialer;
break;
case 1:
cust_event = DTMFDolphinEventStartBluebox;
break;
case 2:
cust_event = DTMFDolphinEventStartMisc;
break;
default:
return;
}

view_dispatcher_send_custom_event(
app->view_dispatcher,
cust_event
);
}

void dtmf_dolphin_scene_start_on_enter(void* context) {
Expand Down

0 comments on commit 5e8e559

Please sign in to comment.