avr_isp_scene_programmer.c 778 B

12345678910111213141516171819202122232425262728
  1. #include "../avr_isp_app_i.h"
  2. void avr_isp_scene_programmer_callback(AvrIspCustomEvent event, void* context) {
  3. furi_assert(context);
  4. AvrIspApp* app = context;
  5. view_dispatcher_send_custom_event(app->view_dispatcher, event);
  6. }
  7. void avr_isp_scene_programmer_on_enter(void* context) {
  8. furi_assert(context);
  9. AvrIspApp* app = context;
  10. avr_isp_programmer_view_set_callback(
  11. app->avr_isp_programmer_view, avr_isp_scene_programmer_callback, app);
  12. view_dispatcher_switch_to_view(app->view_dispatcher, AvrIspViewProgrammer);
  13. }
  14. bool avr_isp_scene_programmer_on_event(void* context, SceneManagerEvent event) {
  15. UNUSED(context);
  16. UNUSED(event);
  17. return false;
  18. }
  19. void avr_isp_scene_programmer_on_exit(void* context) {
  20. UNUSED(context);
  21. }