Remove Rainbow timer bug (after last code cleanup)

This commit is contained in:
Dmitry422
2025-03-25 15:52:38 +07:00
parent b792e094fb
commit 23d2bed66a
2 changed files with 6 additions and 2 deletions

View File

@@ -154,7 +154,9 @@ void rainbow_timer_start(RGBBacklightApp* app) {
// stop furi timer for rainbow
void rainbow_timer_stop(RGBBacklightApp* app) {
furi_timer_stop(app->rainbow_timer);
if (furi_timer_is_running (app->rainbow_timer)){
furi_timer_stop(app->rainbow_timer);
}
}
// if rgb_backlight_installed then apply rainbow colors to backlight and start/restart/stop rainbow_timer