Skip to content

Commit

Permalink
NFC Magic: GetCFG renamed to GetCfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Leptopt1los committed Dec 30, 2023
1 parent ac41bc5 commit 25a1afe
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions base_pack/nfc_magic/scenes/nfc_magic_scene_gen4_get_cfg.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "../nfc_magic_app_i.h"

enum {
NfcMagicSceneGen4GetCFGStateCardSearch,
NfcMagicSceneGen4GetCFGStateCardFound,
NfcMagicSceneGen4GetCfgStateCardSearch,
NfcMagicSceneGen4GetCfgStateCardFound,
};

NfcCommand nfc_mafic_scene_gen4_get_cfg_poller_callback(Gen4PollerEvent event, void* context) {
Expand Down Expand Up @@ -41,7 +41,7 @@ static void nfc_magic_scene_gen4_get_cfg_setup_view(NfcMagicApp* instance) {
uint32_t state =
scene_manager_get_scene_state(instance->scene_manager, NfcMagicSceneGen4GetCfg);

if(state == NfcMagicSceneGen4GetCFGStateCardSearch) {
if(state == NfcMagicSceneGen4GetCfgStateCardSearch) {
popup_set_icon(instance->popup, 0, 8, &I_NFC_manual_60x50);
popup_set_text(
instance->popup, "Apply the\ncard\nto the back", 128, 32, AlignRight, AlignCenter);
Expand All @@ -57,7 +57,7 @@ void nfc_magic_scene_gen4_get_cfg_on_enter(void* context) {
NfcMagicApp* instance = context;

scene_manager_set_scene_state(
instance->scene_manager, NfcMagicSceneGen4GetCfg, NfcMagicSceneGen4GetCFGStateCardSearch);
instance->scene_manager, NfcMagicSceneGen4GetCfg, NfcMagicSceneGen4GetCfgStateCardSearch);
nfc_magic_scene_gen4_get_cfg_setup_view(instance);

nfc_magic_app_blink_start(instance);
Expand All @@ -77,14 +77,14 @@ bool nfc_magic_scene_gen4_get_cfg_on_event(void* context, SceneManagerEvent even
scene_manager_set_scene_state(
instance->scene_manager,
NfcMagicSceneGen4GetCfg,
NfcMagicSceneGen4GetCFGStateCardFound);
NfcMagicSceneGen4GetCfgStateCardFound);
nfc_magic_scene_gen4_get_cfg_setup_view(instance);
consumed = true;
} else if(event.event == NfcMagicCustomEventCardLost) {
scene_manager_set_scene_state(
instance->scene_manager,
NfcMagicSceneGen4GetCfg,
NfcMagicSceneGen4GetCFGStateCardSearch);
NfcMagicSceneGen4GetCfgStateCardSearch);
nfc_magic_scene_gen4_get_cfg_setup_view(instance);
consumed = true;
} else if(event.event == NfcMagicCustomEventWorkerSuccess) {
Expand All @@ -105,7 +105,7 @@ void nfc_magic_scene_gen4_get_cfg_on_exit(void* context) {
gen4_poller_stop(instance->gen4_poller);
gen4_poller_free(instance->gen4_poller);
scene_manager_set_scene_state(
instance->scene_manager, NfcMagicSceneGen4GetCfg, NfcMagicSceneGen4GetCFGStateCardSearch);
instance->scene_manager, NfcMagicSceneGen4GetCfg, NfcMagicSceneGen4GetCfgStateCardSearch);
// Clear view
popup_reset(instance->popup);

Expand Down

0 comments on commit 25a1afe

Please sign in to comment.