Merge PR #470 - implement automatic DST toggling
Implements logic to automatically offset daylight saving time settings when calculating timezone offsets. This should make the DST functions work automatically with no need for user input in most cases. Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com> GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/470
This commit is contained in:
@@ -130,8 +130,7 @@ 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 int16_t movement_timezone_dst_offsets[];
|
||||
extern const char movement_valid_position_0_chars[];
|
||||
extern const char movement_valid_position_1_chars[];
|
||||
|
||||
@@ -321,5 +320,6 @@ void movement_play_alarm(void);
|
||||
void movement_play_alarm_beeps(uint8_t rounds, BuzzerNote alarm_note);
|
||||
|
||||
uint8_t movement_claim_backup_register(void);
|
||||
int16_t get_timezone_offset(uint8_t timezone_idx, watch_date_time date_time);
|
||||
|
||||
#endif // MOVEMENT_H_
|
||||
|
||||
Reference in New Issue
Block a user