summaryrefslogtreecommitdiffstats
path: root/movement/movement.h
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2021-11-25 10:06:49 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2021-11-25 10:36:01 -0500
commit5c3967aea28dff5a2731a28862c5cae3b995f875 (patch)
treee4ff92e50234f3adf300f66722bd9ac8bd360599 /movement/movement.h
parent4a71def034590236b8a3527960cb2331876529a5 (diff)
downloadSensor-Watch-5c3967aea28dff5a2731a28862c5cae3b995f875.tar.gz
Sensor-Watch-5c3967aea28dff5a2731a28862c5cae3b995f875.tar.bz2
Sensor-Watch-5c3967aea28dff5a2731a28862c5cae3b995f875.zip
movement: implement time zone setting
Diffstat (limited to 'movement/movement.h')
-rw-r--r--movement/movement.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/movement/movement.h b/movement/movement.h
index 6953549a..4e791fca 100644
--- a/movement/movement.h
+++ b/movement/movement.h
@@ -27,7 +27,7 @@ typedef union {
uint8_t led_duration : 2; // how many seconds to shine the LED for (x2), or 0 to disable it.
uint8_t led_red_color : 4; // for general purpose illumination, the red LED value (0-15)
uint8_t led_green_color : 4; // for general purpose illumination, the green LED value (0-15)
- uint8_t time_zone : 6; // TODO: an integer representing an index in the (to be implemented) time zone table.
+ uint8_t time_zone : 6; // an integer representing an index in the time zone table.
// while Movement itself doesn't implement a clock or display units, it may make sense to include some
// global settings for watch faces to check. The 12/24 hour preference could inform a clock or a
@@ -97,6 +97,8 @@ typedef struct {
uint8_t subsecond;
} movement_event_t;
+extern const int16_t movement_timezone_offsets[];
+
/** @brief Perform setup for your watch face.
* @details It's tempting to say this is 'one-time' setup, but technically this function is called more than
* once. When the watch first boots, this function is called with a NULL context_ptr, indicating