mirror of
https://git.wetfence.xyz/RandyTheSilly/Trigalarm.git
synced 2026-09-04 10:07:14 -04:00
Make awareness alarm configurable and vastly more useful
This commit is contained in:
@@ -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