Skip to content

Commit

Permalink
Fix for wrong blinking settings
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lee committed Jan 4, 2024
1 parent 6be3d60 commit c687b9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 5 additions & 1 deletion scenes/meal_pager_scene_menu.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "../meal_pager_i.h"
#include "../helpers/meal_pager_led.h"

enum SubmenuIndex {
SubmenuIndexTransmit = 10,
Expand Down Expand Up @@ -52,7 +53,10 @@ bool meal_pager_scene_menu_on_event(void* context, SceneManagerEvent event) {
}
} else if(event.type == SceneManagerEventTypeTick) {
if(app->state_notifications == SubGhzNotificationStateTx) {
notification_message(app->notification, &sequence_blink_magenta_10);
app->state_notifications = SubGhzNotificationStateIDLE;
subghz_txrx_stop(app->subghz->txrx);
meal_pager_blink_stop(app);
//notification_message(app->notification, &sequence_blink_magenta_10);
}
return true;
}
Expand Down
5 changes: 1 addition & 4 deletions scenes/meal_pager_scene_transmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ bool meal_pager_scene_transmit_on_event(void* context, SceneManagerEvent event)
}
} else if(event.type == SceneManagerEventTypeTick) {
if(app->state_notifications == SubGhzNotificationStateTx) {
app->state_notifications = SubGhzNotificationStateIDLE;
subghz_txrx_stop(app->subghz->txrx);
meal_pager_blink_stop(app);
//notification_message(app->notification, &sequence_blink_magenta_10);
notification_message(app->notification, &sequence_blink_magenta_10);
}
return true;
}
Expand Down

0 comments on commit c687b9d

Please sign in to comment.