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.
2023-10-24 06:08:09 +03:00
|
|
|
#include "../nfc_app_i.h"
|
2022-03-16 11:57:13 +03:00
|
|
|
|
|
|
|
void nfc_scene_field_on_enter(void* context) {
|
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.
2023-10-24 06:08:09 +03:00
|
|
|
NfcApp* nfc = context;
|
2022-03-16 11:57:13 +03:00
|
|
|
|
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.
2023-10-24 06:08:09 +03:00
|
|
|
furi_hal_nfc_low_power_mode_stop();
|
|
|
|
furi_hal_nfc_poller_field_on();
|
2022-03-16 11:57:13 +03:00
|
|
|
Popup* popup = nfc->popup;
|
|
|
|
popup_set_header(
|
|
|
|
popup,
|
|
|
|
"Field is on\nDon't leave device\nin this mode for too long.",
|
|
|
|
64,
|
|
|
|
11,
|
|
|
|
AlignCenter,
|
|
|
|
AlignTop);
|
|
|
|
view_dispatcher_switch_to_view(nfc->view_dispatcher, NfcViewPopup);
|
|
|
|
|
|
|
|
notification_internal_message(nfc->notifications, &sequence_set_blue_255);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool nfc_scene_field_on_event(void* context, SceneManagerEvent event) {
|
2022-05-06 16:37:10 +03:00
|
|
|
UNUSED(context);
|
|
|
|
UNUSED(event);
|
2022-03-16 11:57:13 +03:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void nfc_scene_field_on_exit(void* context) {
|
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.
2023-10-24 06:08:09 +03:00
|
|
|
NfcApp* nfc = context;
|
2022-03-16 11:57:13 +03:00
|
|
|
|
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.
2023-10-24 06:08:09 +03:00
|
|
|
furi_hal_nfc_low_power_mode_start();
|
2022-04-19 18:23:58 +03:00
|
|
|
notification_internal_message(nfc->notifications, &sequence_reset_blue);
|
|
|
|
popup_reset(nfc->popup);
|
2022-03-16 11:57:13 +03:00
|
|
|
}
|