1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 20:49:49 +04:00

Changed signature and implementation of common on_event callback

This commit is contained in:
RebornedBrain
2024-01-23 22:33:55 +03:00
parent 1ad17878e3
commit 9fb14704c3
2 changed files with 4 additions and 3 deletions

View File

@@ -35,8 +35,8 @@ void nfc_protocol_support_common_on_enter_empty(NfcApp* instance) {
UNUSED(instance); UNUSED(instance);
} }
bool nfc_protocol_support_common_on_event_empty(NfcApp* instance, uint32_t event) { bool nfc_protocol_support_common_on_event_empty(NfcApp* instance, SceneManagerEvent event) {
UNUSED(instance); UNUSED(instance);
UNUSED(event); UNUSED(event);
return true; return event.type != SceneManagerEventTypeBack ? true : false;
} }

View File

@@ -7,6 +7,7 @@
#include <gui/modules/widget.h> #include <gui/modules/widget.h>
#include "nfc/nfc_app.h" #include "nfc/nfc_app.h"
#include "nfc/nfc_app_i.h"
/** /**
* @brief Common submenu indices. * @brief Common submenu indices.
@@ -82,4 +83,4 @@ void nfc_protocol_support_common_on_enter_empty(NfcApp* instance);
* @param[in] event custom event type that has occurred. * @param[in] event custom event type that has occurred.
* @returns always true. * @returns always true.
*/ */
bool nfc_protocol_support_common_on_event_empty(NfcApp* instance, uint32_t event); bool nfc_protocol_support_common_on_event_empty(NfcApp* instance, SceneManagerEvent event);