lfrfid_scene_select_key.c 564 B

12345678910111213141516171819202122
  1. #include "../lfrfid_i.h"
  2. void lfrfid_scene_select_key_on_enter(void* context) {
  3. LfRfid* app = context;
  4. if(lfrfid_load_key_from_file_select(app)) {
  5. scene_manager_next_scene(app->scene_manager, LfRfidSceneSavedKeyMenu);
  6. } else {
  7. scene_manager_previous_scene(app->scene_manager);
  8. }
  9. }
  10. bool lfrfid_scene_select_key_on_event(void* context, SceneManagerEvent event) {
  11. UNUSED(context);
  12. UNUSED(event);
  13. bool consumed = false;
  14. return consumed;
  15. }
  16. void lfrfid_scene_select_key_on_exit(void* context) {
  17. UNUSED(context);
  18. }