Revert some settings handling to how they work in OFW

This commit is contained in:
Willy-JL
2024-08-06 19:34:49 +02:00
parent 9adb1478e6
commit 083c17f09d
26 changed files with 72 additions and 81 deletions

View File

@@ -471,26 +471,24 @@ static NotificationApp* notification_app_alloc(void) {
app->settings.display_off_delay_ms = 30000;
app->settings.vibro_on = true;
// malloc() also does memset(0), no need to init 0 values
_Static_assert(LayerInternal == 0, "need to init layer values");
// app->display.value[LayerInternal] = 0x00;
// app->display.value[LayerNotification] = 0x00;
// app->display.index = LayerInternal;
app->display.value[LayerInternal] = 0x00;
app->display.value[LayerNotification] = 0x00;
app->display.index = LayerInternal;
app->display.light = LightBacklight;
// app->led[0].value[LayerInternal] = 0x00;
// app->led[0].value[LayerNotification] = 0x00;
// app->led[0].index = LayerInternal;
app->led[0].value[LayerInternal] = 0x00;
app->led[0].value[LayerNotification] = 0x00;
app->led[0].index = LayerInternal;
app->led[0].light = LightRed;
// app->led[1].value[LayerInternal] = 0x00;
// app->led[1].value[LayerNotification] = 0x00;
// app->led[1].index = LayerInternal;
app->led[1].value[LayerInternal] = 0x00;
app->led[1].value[LayerNotification] = 0x00;
app->led[1].index = LayerInternal;
app->led[1].light = LightGreen;
// app->led[2].value[LayerInternal] = 0x00;
// app->led[2].value[LayerNotification] = 0x00;
// app->led[2].index = LayerInternal;
app->led[2].value[LayerInternal] = 0x00;
app->led[2].value[LayerNotification] = 0x00;
app->led[2].index = LayerInternal;
app->led[2].light = LightBlue;
app->settings.version = NOTIFICATION_SETTINGS_VERSION;