still under construction

This commit is contained in:
Dmitry422
2025-04-09 22:23:55 +07:00
parent d467798b43
commit 4ec8f21e09
4 changed files with 22 additions and 37 deletions

View File

@@ -620,6 +620,8 @@ static NotificationApp* notification_app_alloc(void) {
furi_timer_alloc(night_shift_timer_callback, FuriTimerTypePeriodic, app);
// --- NIGHT SHIFT END ---
lcd_inverted = false;
return app;
}
@@ -650,6 +652,9 @@ static void notification_apply_settings(NotificationApp* app) {
night_shift_timer_start(app);
}
// --- NIGHT SHIFT END ---
//setup global variable "inverted" by settings value;
lcd_inverted = app->settings.lcd_inverse;
}
static void notification_init_settings(NotificationApp* app) {

View File

@@ -51,8 +51,6 @@ typedef struct {
bool lcd_inverse;
} NotificationSettings;
//extern NotificationSettings settings;
struct NotificationApp {
FuriMessageQueue* queue;
FuriPubSub* event_record;
@@ -72,3 +70,6 @@ struct NotificationApp {
void notification_message_save_settings(NotificationApp* app);
void night_shift_timer_start(NotificationApp* app);
void night_shift_timer_stop(NotificationApp* app);
//global variable for using in canvac.c
extern bool lcd_inverted;