From 25a1afe27d59e2fac07218f6b2376e6b5bb44c71 Mon Sep 17 00:00:00 2001 From: Methodius Date: Sun, 31 Dec 2023 01:26:43 +0900 Subject: [PATCH] NFC Magic: GetCFG renamed to GetCfg --- .../scenes/nfc_magic_scene_gen4_get_cfg.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/base_pack/nfc_magic/scenes/nfc_magic_scene_gen4_get_cfg.c b/base_pack/nfc_magic/scenes/nfc_magic_scene_gen4_get_cfg.c index 1f4fc85d..691d6924 100644 --- a/base_pack/nfc_magic/scenes/nfc_magic_scene_gen4_get_cfg.c +++ b/base_pack/nfc_magic/scenes/nfc_magic_scene_gen4_get_cfg.c @@ -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) { @@ -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); @@ -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); @@ -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) { @@ -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);