mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-23 05:24:46 -07:00
to bool
This commit is contained in:
@@ -487,11 +487,9 @@ static void notification_process_notification_message(
|
||||
}
|
||||
break;
|
||||
case NotificationMessageTypeLedDisplayBacklightEnforceOn:
|
||||
furi_check(app->display_led_lock < UINT8_MAX);
|
||||
|
||||
// --- NIGHT SHIFT ---
|
||||
if(app->display_led_lock < 1) {
|
||||
app->display_led_lock = 1;
|
||||
if(!app->display_led_lock) {
|
||||
app->display_led_lock = true;
|
||||
notification_apply_internal_led_layer(
|
||||
&app->display,
|
||||
notification_message->data.led.value * display_brightness_setting *
|
||||
@@ -499,8 +497,8 @@ static void notification_process_notification_message(
|
||||
}
|
||||
break;
|
||||
case NotificationMessageTypeLedDisplayBacklightEnforceAuto:
|
||||
if(app->display_led_lock > 0) {
|
||||
app->display_led_lock = 0;
|
||||
if(app->display_led_lock) {
|
||||
app->display_led_lock = false;
|
||||
notification_apply_internal_led_layer(
|
||||
&app->display,
|
||||
notification_message->data.led.value * display_brightness_setting *
|
||||
|
||||
Reference in New Issue
Block a user