Begin v2 conversion

This commit is contained in:
RandyTheSilly committed 2026-10-21 18:31:17 -04:00
1 parent 98f13a941d
commit ce67fc3081
9 files changed
+95 -275

No files matched your search

+5 -12
View File
@@ -2,24 +2,17 @@
#include <stdint.h>
// BUMP ON UPDATES
#define STORAGE_KEY_SETTINGS 50
#define STORAGE_KEY_ALARM_REASON 100
#define STORAGE_KEY_SETTINGS 51 // BUMP ON MAJOR UPDATES
#define STORAGE_KEY_ALARM_HOUR 0
#define STORAGE_KEY_ALARM_MINUTE 1
#define STORAGE_KEY_PAVLOK_INTENSITY 2
#define STORAGE_KEY_ALARM_REASON 2
typedef struct AppSettings {
bool TutorialEnabled;
bool PavlokEnabled;
uint8_t PavlokMin;
uint8_t PavlokMax;
uint8_t PavlokStep;
uint8_t PavlokMainDelay;
uint8_t PavlokIntervalSeconds;
uint8_t AwarenessTimeGapMinutes;
uint8_t AwarenessTimeLimitSeconds;
uint8_t PavlokIntensity;
uint8_t TriangleCount;
uint8_t TriangeMinSecs;
} __attribute__((__packed__)) AppSettings;
_Static_assert(sizeof(AppSettings) <= 256, "AppSettings exceeds Pebble 256-byte persist limit!");