Merge PR #268 - add daylight savings time toggle
Adds a toggle in the preferences face that allows the user to enable or disable the daylight savings time. Should help produce the correct results with the sunrise/sunset presets. A proper solution would be to integrate the tzinfo database but it's too big for the watch at the time of this writing. Can't be done unless it can be shrunk down into a subset the user would be interested. Even then it's a stopgap since the database is likely to keep growing over time. Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com> GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/268
This commit is contained in:
@@ -63,7 +63,8 @@ typedef union {
|
||||
bool clock_24h_leading_zero : 1; // indicates whether clock should leading zero to indicate 24 hour mode.
|
||||
bool use_imperial_units : 1; // indicates whether to use metric units (the default) or imperial.
|
||||
bool alarm_enabled : 1; // indicates whether there is at least one alarm enabled.
|
||||
uint8_t reserved : 5; // room for more preferences if needed.
|
||||
bool dst_active : 1; // indicates whether daylight savings time is active
|
||||
uint8_t reserved : 4; // room for more preferences if needed.
|
||||
} bit;
|
||||
uint32_t reg;
|
||||
} movement_settings_t;
|
||||
@@ -129,6 +130,8 @@ typedef struct {
|
||||
} movement_event_t;
|
||||
|
||||
extern const int16_t movement_timezone_offsets[];
|
||||
extern const uint8_t movement_dst_jump_table[];
|
||||
extern const uint8_t movement_dst_inverse_jump_table[];
|
||||
extern const char movement_valid_position_0_chars[];
|
||||
extern const char movement_valid_position_1_chars[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user