@@ -33,8 +33,9 @@ void meal_pager_scene_transmit_on_enter(void* context) {
3333 FURI_LOG_D (TAG , "Generated tmp.sub" );
3434 //meal_pager_blink_start_subghz(app);
3535 FURI_LOG_D (TAG , "Start Transmitting" );
36- subghz_send (app );
37-
36+ if (!app -> stop_transmit ) {
37+ subghz_send (app );
38+ }
3839 dolphin_deed (DolphinDeedSubGhzSend );
3940 //FURI_LOG_D(TAG, "Finished Transmitting");
4041 //meal_pager_blink_stop(app);
@@ -54,10 +55,9 @@ bool meal_pager_scene_transmit_on_event(void* context, SceneManagerEvent event)
5455 case Meal_PagerCustomEventTransmitDown :
5556 break ;
5657 case Meal_PagerCustomEventTransmitBack :
57- notification_message (app -> notification , & sequence_reset_red );
58- notification_message (app -> notification , & sequence_reset_green );
59- notification_message (app -> notification , & sequence_reset_blue );
6058 app -> stop_transmit = true;
59+ app -> state_notifications = SubGhzNotificationStateIDLE ;
60+ meal_pager_blink_stop (app );
6161 if (!scene_manager_search_and_switch_to_previous_scene (
6262 app -> scene_manager , Meal_PagerSceneMenu )) {
6363 scene_manager_stop (app -> scene_manager );
@@ -75,7 +75,10 @@ bool meal_pager_scene_transmit_on_event(void* context, SceneManagerEvent event)
7575 }
7676 } else if (event .type == SceneManagerEventTypeTick ) {
7777 if (app -> state_notifications == SubGhzNotificationStateTx ) {
78- notification_message (app -> notification , & sequence_blink_magenta_10 );
78+ app -> state_notifications = SubGhzNotificationStateIDLE ;
79+ subghz_txrx_stop (app -> subghz -> txrx );
80+ meal_pager_blink_stop (app );
81+ //notification_message(app->notification, &sequence_blink_magenta_10);
7982 }
8083 return true;
8184 }
0 commit comments