NFC refactoring (#3050)

"A long time ago in a galaxy far, far away...." we started NFC subsystem refactoring.

Starring:

- @gornekich - NFC refactoring project lead, architect, senior developer
- @gsurkov - architect, senior developer
- @RebornedBrain - senior developer

Supporting roles:

- @skotopes, @DrZlo13, @hedger - general architecture advisors, code review
- @Astrrra, @doomwastaken, @Hellitron, @ImagineVagon333 - quality assurance

Special thanks:

@bettse, @pcunning, @nxv, @noproto, @AloneLiberty and everyone else who has been helping us all this time and contributing valuable knowledges, ideas and source code.
This commit is contained in:
gornekich
2023-10-24 07:08:09 +04:00
committed by GitHub
parent 35c903494c
commit d92b0a82cc
514 changed files with 41488 additions and 68125 deletions

View File

@@ -1,10 +1,10 @@
#include "../nfc_i.h"
#include "../nfc_app_i.h"
void nfc_scene_field_on_enter(void* context) {
Nfc* nfc = context;
furi_hal_nfc_field_on();
NfcApp* nfc = context;
furi_hal_nfc_low_power_mode_stop();
furi_hal_nfc_poller_field_on();
Popup* popup = nfc->popup;
popup_set_header(
popup,
@@ -25,9 +25,9 @@ bool nfc_scene_field_on_event(void* context, SceneManagerEvent event) {
}
void nfc_scene_field_on_exit(void* context) {
Nfc* nfc = context;
NfcApp* nfc = context;
furi_hal_nfc_field_off();
furi_hal_nfc_low_power_mode_start();
notification_internal_message(nfc->notifications, &sequence_reset_blue);
popup_reset(nfc->popup);
}