mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 11:10:29 +08:00
Minot cleanup
This commit is contained in:
parent
598e876186
commit
5ae88e438d
|
@ -457,8 +457,7 @@ uint8_t movement_claim_backup_register(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t get_timezone_offset(uint8_t timezone_idx, watch_date_time date_time) {
|
int16_t get_timezone_offset(uint8_t timezone_idx, watch_date_time date_time) {
|
||||||
if (!movement_state.settings.bit.dst_active) return movement_timezone_offsets[timezone_idx];
|
if (movement_state.settings.bit.dst_active && dst_occurring(date_time))
|
||||||
if (dst_occurring(date_time))
|
|
||||||
return movement_timezone_dst_offsets[timezone_idx];
|
return movement_timezone_dst_offsets[timezone_idx];
|
||||||
return movement_timezone_offsets[timezone_idx];
|
return movement_timezone_offsets[timezone_idx];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue