Update reserved future settings
This commit is contained in:
1 parent
8a6822a15c
commit
74f3660698
3 files changed
+6
-8
No files matched your search
+4
-4
@@ -34,12 +34,12 @@
|
|||||||
"messageKeys": [
|
"messageKeys": [
|
||||||
"PKJS_READY",
|
"PKJS_READY",
|
||||||
"PKJS_ALARM_RESET",
|
"PKJS_ALARM_RESET",
|
||||||
"PKJS_TRIANGLE_COUNT",
|
|
||||||
"PKJS_TRIANGLE_SECS_MIN",
|
|
||||||
"PKJS_TRIANGLE_SECS_STEP",
|
|
||||||
"PKJS_PAVLOK_ENABLE",
|
"PKJS_PAVLOK_ENABLE",
|
||||||
"PKJS_PAVLOK_ZAP_INTENSITY",
|
"PKJS_PAVLOK_ZAP_INTENSITY",
|
||||||
"PKJS_PAVLOK_ZAP"
|
"PKJS_PAVLOK_ZAP",
|
||||||
|
"PKJS_TRIANGLE_COUNT",
|
||||||
|
"PKJS_TRIANGLE_SECS_MIN",
|
||||||
|
"PKJS_TRIANGLE_SECS_STEP"
|
||||||
],
|
],
|
||||||
"resources": {
|
"resources": {
|
||||||
"media": [
|
"media": [
|
||||||
|
|||||||
+1
-2
@@ -1238,8 +1238,7 @@ static void init() {
|
|||||||
settings.TriangleSecsMin = 18;
|
settings.TriangleSecsMin = 18;
|
||||||
settings.TriangleSecsStep = 2;
|
settings.TriangleSecsStep = 2;
|
||||||
settings.BeepVolume = 0; // reserved for future use
|
settings.BeepVolume = 0; // reserved for future use
|
||||||
settings.AccelAxis = 7; // binary sum, 1 (x) + 2 (y) + 4 (z) = 7
|
settings.TouchEnabled = true; // reserved for future use
|
||||||
settings.AccelDirection = 0; // both directions
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// read even when opening setter to ensure a recovery alarm is not able to be overwritten
|
// read even when opening setter to ensure a recovery alarm is not able to be overwritten
|
||||||
|
|||||||
+1
-2
@@ -21,8 +21,7 @@ typedef struct AppSettings {
|
|||||||
uint8_t TriangleSecsStep;
|
uint8_t TriangleSecsStep;
|
||||||
//// ui
|
//// ui
|
||||||
uint8_t BeepVolume; // reserved for future use
|
uint8_t BeepVolume; // reserved for future use
|
||||||
uint8_t AccelAxis; // reserved for future use
|
bool TouchEnabled; // reserved for future use
|
||||||
uint8_t AccelDirection; // reserved for future use
|
|
||||||
} __attribute__((__packed__)) AppSettings;
|
} __attribute__((__packed__)) AppSettings;
|
||||||
|
|
||||||
_Static_assert(sizeof(AppSettings) <= 256, "AppSettings exceeds Pebble 256-byte persist limit!");
|
_Static_assert(sizeof(AppSettings) <= 256, "AppSettings exceeds Pebble 256-byte persist limit!");
|
||||||
Reference in new issue
Block a user