Reserve space in settings struct for future features
This commit is contained in:
1 parent
5e1ef0b110
commit
8a6822a15c
4 files changed
+11
-42
No files matched your search
@@ -1,6 +1,3 @@
|
|||||||
# X Icon
|
|
||||||
Modified version of [x mark by Lewen Design](https://thenounproject.com/icon/x-mark-7924184/) (CC BY 3.0)
|
|
||||||
|
|
||||||
# Check Icon
|
# Check Icon
|
||||||
Modified version of [checkmark by Asmuh](https://thenounproject.com/icon/checkmark-2193586/) (CC BY 3.0)
|
Modified version of [checkmark by Asmuh](https://thenounproject.com/icon/checkmark-2193586/) (CC BY 3.0)
|
||||||
|
|
||||||
|
|||||||
@@ -1,39 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg
|
|
||||||
version="1.1"
|
|
||||||
viewBox="-5.0 -10.0 110.0 135.0"
|
|
||||||
id="svg2"
|
|
||||||
sodipodi:docname="x.svg"
|
|
||||||
inkscape:version="1.4.4 (dcaf3e7d9e, 2026-05-05)"
|
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:svg="http://www.w3.org/2000/svg">
|
|
||||||
<defs
|
|
||||||
id="defs2" />
|
|
||||||
<sodipodi:namedview
|
|
||||||
id="namedview2"
|
|
||||||
pagecolor="#ffffff"
|
|
||||||
bordercolor="#000000"
|
|
||||||
borderopacity="0.25"
|
|
||||||
inkscape:showpageshadow="2"
|
|
||||||
inkscape:pageopacity="0.0"
|
|
||||||
inkscape:pagecheckerboard="0"
|
|
||||||
inkscape:deskcolor="#d1d1d1"
|
|
||||||
inkscape:zoom="7.8444444"
|
|
||||||
inkscape:cx="54.943343"
|
|
||||||
inkscape:cy="67.436261"
|
|
||||||
inkscape:window-width="3056"
|
|
||||||
inkscape:window-height="1631"
|
|
||||||
inkscape:window-x="20"
|
|
||||||
inkscape:window-y="20"
|
|
||||||
inkscape:window-maximized="0"
|
|
||||||
inkscape:current-layer="svg2" />
|
|
||||||
<path
|
|
||||||
d="m85.66 83.832c-0.16797 0.15234-0.66406-0.67188-0.69922-0.82812-0.011719-0.050781-0.078126-0.12891 0.039062-0.15234 0.20312-0.039062 0.44141 0.59375 0.51172 0.72656 0.023437 0.046875 0.19922 0.10938 0.15234 0.25zm-56.695-25.797c-0.10156-0.14062-0.21484-0.21484-0.39062-0.16406-0.31641 0.09375 0.054687 0.55859 0.27344 0.5625l0.12109-0.39844zm30.805-10.719-0.023437 0.23438c0.29688-0.019531 0.28906-0.14844 0.40234-0.31641 0.16406-0.25 0.11719-0.32812 0.14453-0.37891 0.035156-0.0625 0.17969-0.074219 0.24219-0.12891 0.027344-0.023437 0.22266-0.25 0.13281-0.30078-0.12109-0.0625-0.23438 0.17969-0.40234 0.027344 0.125 0.48047 0.011719 0.25781-0.14453 0.40234-0.12891 0.11719-0.011719 0.29688-0.050782 0.34766l-0.29687 0.10938zm-8.7773-15.43c-0.089844-0.070313-0.70313 0.37109-0.57422 0.57422 0.058593 0.070312 0.59766-0.42969 0.57422-0.57422zm-9.1641 36.535c-0.18359 0.050781-0.20312 0.26172-0.28516 0.39844-0.027344 0.046876-0.10938 0.039063-0.11328 0.042969-0.039063 0.0625 0.035156 0.12891 0.082031 0.16797 0.078125-0.089844 0.76562-0.73438 0.3125-0.60938zm43.602 17.367-0.17578-0.39844c-0.625-0.066406-0.035156 0.62891 0.17578 0.39844zm-21.242-2.3945c-0.125-0.12109-0.20703-0.35938-0.41016-0.36719-0.070313 0.070312 0.42969 0.62891 0.54688 0.63281 0.089843 0 0.074219-0.16797 0.011719-0.21484-0.035157-0.027343-0.11719-0.019531-0.14844-0.046874zm8.5156-17.934c0.042969 0.25391 0.03125 0.42187 0.34375 0.40234 0.035156-0.26562-0.054687-0.4375-0.34375-0.40234zm-13.594-40.719c-0.23047-0.046876-0.25 0.21484-0.40234 0.31641l0.11719 0.14453c0.17188-0.082031 0.26953-0.27344 0.28516-0.46094zm-18.773 45.414c0.074218 0.09375 0.15234 0.17188 0.28516 0.14062l0.10156-0.25781-0.12891-0.14062zm20.488-24.32c-0.035157 0.066406-0.050781 0.14062-0.042969 0.21484 0.14453 0.046875 0.10156-0.0625 0.13672-0.09375 0.55078-0.42188 0.070312-0.42969-0.09375-0.125zm10.957 18.359c-0.0625 0.22266 0.125 0.57813 0.37109 0.51563 0.26172-0.066407-0.18359-0.57031-0.37109-0.51563zm1.3828 2.9961c-0.12109 0.17578 0.42188 0.46094 0.46094 0.25781l-0.17188-0.28906c-0.050781-0.046875-0.27734 0.019532-0.28516 0.03125zm8.4062 10.465c0.32031 0.5625 0.72266 1.4258 1.1523 1.8867 0.20703 0.22266 0.20312 0.050781 0.41016 0.44141 0.3125 0.59375 0.55859 1.1055 0.98047 1.7383 0.16016 0.24219 0.29688 0.49219 0.46094 0.74609 0.03125 0.050781 0.20312 0.34375 0.27734 0.26953-0.011718-0.10156 0.070313-0.21875 0.0625-0.30859-0.003906-0.039063-0.09375-0.039063-0.11719-0.078126-0.085937-0.14453-0.18359-0.37109-0.28516-0.49609-0.046875-0.054688-0.14453-0.015625-0.17578-0.074219-0.070313-0.13281-0.19922-0.46484-0.27734-0.64062-0.26953-0.60547-0.66797-0.98438-1.0352-1.5508-0.21875-0.33594-0.37891-0.74609-0.55859-1.0547-0.039063-0.066406-0.19922-0.11328-0.28125-0.23828-0.23438-0.35156-0.10156-0.43359-0.51953-0.83594-0.089843-0.085938-0.17187-0.17188-0.26172-0.25391-0.125 0.3125 0.09375 0.3125 0.17188 0.44922zm-62.121-6.7852c-0.066407 0.097656-0.41406 0.64062-0.16016 0.69141 0.21094 0.046875 0.19141-0.35938 0.22656-0.46094 0.28516-0.77734 0.73828-1.6484 1.0625-2.4062 0.1875-0.44141 0.41797-0.85547 0.58594-1.3047 0.042969-0.11328 0.27734-0.76172 0.28125-0.80859 0.015626-0.20703-0.3125-0.19922-0.10937-0.48828l-0.43359 0.6875c-0.22656 0.97266-0.80859 1.9492-1.0508 2.9258-0.039062 0.16016 0.054688 0.39844 0.042969 0.41406-0.085937 0.10938-0.51953 0.046875-0.23047 0.54688-0.26562 0.089843-0.17187 0.14453-0.21094 0.19922zm56.191 1.9609c0.23438-0.058593 0.29297 0.23828 0.35938 0.28125 0.035156 0.023438 0.14453-0.050781 0.23438 0.003907 0.22266 0.13281 0.28906 0.65625 0.78906 0.40625-0.17578-0.24609-0.10938-0.29297 0.03125-0.51563-0.074219-0.0625-0.12891-0.22656-0.20703-0.26562-0.14453-0.074219-0.46875 0.17578-0.39844-0.36719l0.16016-0.007812 0.007813-0.22656h-0.17188l0.058594 0.17188c-0.12891-0.19922-0.47266-0.10156-0.50781-0.12109-0.03125-0.015625-0.33594-0.48828-0.41797-0.56641-0.085937-0.0625-0.32812 0.21094-0.28516 0.30859 0.09375 0.039062 0.52344 0.65234 0.51953 0.69531-0.003906 0.070313-0.24219 0.050782-0.17188 0.19922zm-6.9648 4.8164c0.050781 0.074218 0.03125 0.22656 0.10938 0.33984 0.015625 0.023438 0.38281 0.33203 0.40625 0.33984 0.25781 0.10938 0.14062-0.20703 0.40234-0.14062l-0.011719 0.16406c-0.17578 0.070313-0.5 0.10547-0.44922 0.35547 0.125-0.042969 0.33594 0.0625 0.42578 0.042969 0.085937-0.015625 0.12891-0.18359 0.28906-0.16016 0.27734 0.1875 0.35156 0.59766 0.69531 0.75 0.25391-0.36328-0.16797-0.4375-0.36328-0.66016l0.10156-0.23438c-0.070312-0.13672-0.26562-0.050781-0.33594-0.09375-0.042968-0.027343-0.11719-0.43359-0.17969-0.52734-0.074219-0.11328-0.26562-0.11719-0.33203-0.17188-0.074219-0.066406-0.082032-0.26172-0.14844-0.3125-0.019531-0.015625-0.375-0.14453-0.38672-0.12891-0.125 0.42187 0.31641 0.34375 0.23047 0.75-0.35547 0.050781-0.27734-0.30078-0.29688-0.33203-0.011719-0.019531-0.37109-0.26953-0.39453-0.24219-0.14062 0.15234 0.21484 0.23828 0.23438 0.26562zm-37.066-23.594c-0.074219 0.078124-0.078125 0.17969-0.14453 0.25781-0.10938 0.12109-0.38672 0.1875-0.33984 0.43359Line truncated
|
|
||||||
id="path1"
|
|
||||||
style="fill:#ff0000"
|
|
||||||
inkscape:export-filename="../resources/x.png"
|
|
||||||
inkscape:export-xdpi="215.34914"
|
|
||||||
inkscape:export-ydpi="215.34914" />
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 89 KiB |
@@ -1237,6 +1237,9 @@ static void init() {
|
|||||||
settings.TriangleCount = 6;
|
settings.TriangleCount = 6;
|
||||||
settings.TriangleSecsMin = 18;
|
settings.TriangleSecsMin = 18;
|
||||||
settings.TriangleSecsStep = 2;
|
settings.TriangleSecsStep = 2;
|
||||||
|
settings.BeepVolume = 0; // reserved for future use
|
||||||
|
settings.AccelAxis = 7; // binary sum, 1 (x) + 2 (y) + 4 (z) = 7
|
||||||
|
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
|
||||||
|
|||||||
@@ -9,12 +9,20 @@
|
|||||||
#define STORAGE_KEY_ALARM_WAKEUP_ID 3
|
#define STORAGE_KEY_ALARM_WAKEUP_ID 3
|
||||||
|
|
||||||
typedef struct AppSettings {
|
typedef struct AppSettings {
|
||||||
|
// in-app
|
||||||
bool TutorialEnabled;
|
bool TutorialEnabled;
|
||||||
|
// phone
|
||||||
|
//// pavlok integration
|
||||||
bool PavlokEnabled;
|
bool PavlokEnabled;
|
||||||
uint8_t PavlokIntensity;
|
uint8_t PavlokIntensity;
|
||||||
|
//// triangles
|
||||||
uint8_t TriangleCount;
|
uint8_t TriangleCount;
|
||||||
uint8_t TriangleSecsMin;
|
uint8_t TriangleSecsMin;
|
||||||
uint8_t TriangleSecsStep;
|
uint8_t TriangleSecsStep;
|
||||||
|
//// ui
|
||||||
|
uint8_t BeepVolume; // reserved for future use
|
||||||
|
uint8_t AccelAxis; // 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