mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
on second thought, no need to check if tz is 0
any time setting would have a non-zero utc offset since the hw RTC starts near epoch. it is sufficient to just check for that.
This commit is contained in:
parent
a36545073d
commit
d9b8fe686d
1 changed files with 1 additions and 1 deletions
|
|
@ -456,7 +456,7 @@ pub fn start_time_server() {
|
|||
}
|
||||
}),
|
||||
Some(TimeOp::WallClockTimeInit) => xous::msg_blocking_scalar_unpack!(msg, _, _, _, _, {
|
||||
if utc_offset_ms == 0 && tz_offset_ms == 0 {
|
||||
if utc_offset_ms == 0 {
|
||||
xous::return_scalar(msg.sender, 0).unwrap();
|
||||
} else {
|
||||
xous::return_scalar(msg.sender, 1).unwrap();
|
||||
|
|
|
|||
Loading…
Reference in a new issue