Skip to content

Commit a5e9150

Browse files
committed
use status led properly via notifications
1 parent ef52585 commit a5e9150

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

non_catalog_apps/dcf77_clock_sync/dcf77_clock_sync.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ int dcf77_clock_sync_app_main(void* p) {
120120

121121
if(app->dt.second < 59) {
122122
if(running) {
123-
furi_hal_light_set(LightRed | LightGreen | LightBlue, 0);
123+
notification_message(notification, &sequence_reset_rgb);
124124
furi_hal_rfid_tim_read_stop();
125125
furi_hal_pwm_stop(FuriHalPwmOutputIdLptim2PA4);
126126
furi_hal_gpio_init(
@@ -130,7 +130,7 @@ int dcf77_clock_sync_app_main(void* p) {
130130
furi_delay_ms(silence_ms);
131131
furi_hal_rfid_tim_read_start(DCF77_FREQ, 0.5);
132132
furi_hal_pwm_start(FuriHalPwmOutputIdLptim2PA4, DCF77_FREQ, 50);
133-
furi_hal_light_set(LightBlue, 0xFF);
133+
notification_message(notification, &sequence_set_only_blue_255);
134134
running = true;
135135
} else
136136
set_time(app, DCF77_OFFSET + 1);
@@ -157,10 +157,11 @@ int dcf77_clock_sync_app_main(void* p) {
157157
if(running) {
158158
furi_hal_rfid_tim_read_stop();
159159
furi_hal_pwm_stop(FuriHalPwmOutputIdLptim2PA4);
160-
furi_hal_light_set(LightRed | LightGreen | LightBlue, 0);
160+
notification_message(notification, &sequence_reset_rgb);
161161
}
162162

163163
notification_message_block(notification, &sequence_display_backlight_enforce_auto);
164+
notification_message(notification, &sequence_reset_rgb);
164165

165166
view_port_enabled_set(view_port, false);
166167
gui_remove_view_port(gui, view_port);

0 commit comments

Comments
 (0)