avr_isp_scene_load.c 537 B

12345678910111213141516171819202122
  1. #include "../avr_isp_app_i.h"
  2. void avr_isp_scene_load_on_enter(void* context) {
  3. furi_assert(context);
  4. AvrIspApp* app = context;
  5. if(avr_isp_load_from_file(app)) {
  6. scene_manager_next_scene(app->scene_manager, AvrIspSceneWriter);
  7. } else {
  8. scene_manager_previous_scene(app->scene_manager);
  9. }
  10. }
  11. bool avr_isp_scene_load_on_event(void* context, SceneManagerEvent event) {
  12. UNUSED(context);
  13. UNUSED(event);
  14. return false;
  15. }
  16. void avr_isp_scene_load_on_exit(void* context) {
  17. UNUSED(context);
  18. }