nfc_scene_debug_detect.c 802 B

12345678910111213141516171819202122232425262728293031
  1. #include "nfc_scene_debug_detect.h"
  2. #include "../nfc_i.h"
  3. #include <furi.h>
  4. const void nfc_scene_debug_detect_on_enter(void* context) {
  5. Nfc* nfc = (Nfc*)context;
  6. view_dispatcher_switch_to_view(nfc->nfc_common.view_dispatcher, NfcViewDetect);
  7. }
  8. const bool nfc_scene_debug_detect_on_event(void* context, uint32_t event) {
  9. return false;
  10. }
  11. const void nfc_scene_debug_detect_on_exit(void* context) {
  12. }
  13. AppScene* nfc_scene_debug_detect_alloc() {
  14. AppScene* scene = furi_alloc(sizeof(AppScene));
  15. scene->id = NfcSceneDebugDetect;
  16. scene->on_enter = nfc_scene_debug_detect_on_enter;
  17. scene->on_event = nfc_scene_debug_detect_on_event;
  18. scene->on_exit = nfc_scene_debug_detect_on_exit;
  19. return scene;
  20. }
  21. void nfc_scene_debug_detect_free(AppScene* scene) {
  22. free(scene);
  23. }