Skip to content

Commit

Permalink
sync nfc magic
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Dec 19, 2023
1 parent f444e8c commit 7c40674
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions base_pack/nfc_magic/scenes/nfc_magic_scene_gen4_actions_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
enum SubmenuIndex {
SubmenuIndexAuthenticate,
SubmenuIndexSetStandartConfig,
SubmenuIndexGetRevision,
SubmenuIndexGetConfig
SubmenuIndexGetConfig,
SubmenuIndexGetRevision
};

void nfc_magic_scene_gen4_actions_menu_submenu_callback(void* context, uint32_t index) {
Expand All @@ -26,14 +26,14 @@ void nfc_magic_scene_gen4_actions_menu_on_enter(void* context) {
instance);
submenu_add_item(
submenu,
"Set Standart Config",
SubmenuIndexSetStandartConfig,
"Get Revision",
SubmenuIndexGetRevision,
nfc_magic_scene_gen4_actions_menu_submenu_callback,
instance);
submenu_add_item(
submenu,
"Get Revision",
SubmenuIndexGetRevision,
"Set Standart Config",
SubmenuIndexSetStandartConfig,
nfc_magic_scene_gen4_actions_menu_submenu_callback,
instance);
if(furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug)) {
Expand Down Expand Up @@ -62,12 +62,12 @@ bool nfc_magic_scene_gen4_actions_menu_on_event(void* context, SceneManagerEvent
} else if(event.event == SubmenuIndexSetStandartConfig) {
scene_manager_next_scene(instance->scene_manager, NfcMagicSceneGen4SetCFG);
consumed = true;
} else if(event.event == SubmenuIndexGetRevision) {
scene_manager_next_scene(instance->scene_manager, NfcMagicSceneGen4Revision);
consumed = true;
} else if(event.event == SubmenuIndexGetConfig) {
scene_manager_next_scene(instance->scene_manager, NfcMagicSceneGen4GetCFG);
consumed = true;
} else if(event.event == SubmenuIndexGetRevision) {
scene_manager_next_scene(instance->scene_manager, NfcMagicSceneGen4Revision);
consumed = true;
}
scene_manager_set_scene_state(
instance->scene_manager, NfcMagicSceneGen4ActionsMenu, event.event);
Expand Down

0 comments on commit 7c40674

Please sign in to comment.