mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-22 05:14:46 -07:00
still under construction
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user