Make awareness alarm configurable and vastly more useful
This commit is contained in:
1 parent
8e64b4b4b8
commit
dc10841812
5 files changed
+164
-77
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
// BUMP ON UPDATES
|
||||
#define STORAGE_KEY_SETTINGS 50
|
||||
#define STORAGE_KEY_ALARM_REASON 100
|
||||
|
||||
#define STORAGE_KEY_ALARM_HOUR 0
|
||||
#define STORAGE_KEY_ALARM_MINUTE 1
|
||||
|
||||
typedef struct AppSettings {
|
||||
bool TutorialEnabled;
|
||||
bool PavlokEnabled;
|
||||
uint8_t AwarenessTimeGapMinutes;
|
||||
uint8_t AwarenessTimeLimitSeconds;
|
||||
uint8_t AwarenessNudgeEnabled;
|
||||
} __attribute__((__packed__)) AppSettings;
|
||||
|
||||
_Static_assert(sizeof(AppSettings) <= 256, "AppSettings exceeds Pebble 256-byte persist limit!");
|
||||
Reference in new issue
Block a user