Skip to content

Commit 782ee25

Browse files
authored
Merge pull request #13 from leedave/feature/subghz_updates
Fix for wrong blinking settings
2 parents 441d7b2 + c687b9d commit 782ee25

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

scenes/meal_pager_scene_menu.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "../meal_pager_i.h"
2+
#include "../helpers/meal_pager_led.h"
23

34
enum SubmenuIndex {
45
SubmenuIndexTransmit = 10,
@@ -52,7 +53,10 @@ bool meal_pager_scene_menu_on_event(void* context, SceneManagerEvent event) {
5253
}
5354
} else if(event.type == SceneManagerEventTypeTick) {
5455
if(app->state_notifications == SubGhzNotificationStateTx) {
55-
notification_message(app->notification, &sequence_blink_magenta_10);
56+
app->state_notifications = SubGhzNotificationStateIDLE;
57+
subghz_txrx_stop(app->subghz->txrx);
58+
meal_pager_blink_stop(app);
59+
//notification_message(app->notification, &sequence_blink_magenta_10);
5660
}
5761
return true;
5862
}

scenes/meal_pager_scene_transmit.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ 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-
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);
78+
notification_message(app->notification, &sequence_blink_magenta_10);
8279
}
8380
return true;
8481
}

0 commit comments

Comments
 (0)