Skip to content

Commit

Permalink
[nrf fromlist] [zephyr] Fix realtime clock
Browse files Browse the repository at this point in the history
I applied a code review comment only partially and forgot
to remove the multiplication.

(cherry picked from commit f45e998b9d9c719107f6fb3bf4a02eb5f3aa18c4)
  • Loading branch information
Damian-Nordic authored and kkasperczyk-no committed May 16, 2022
1 parent c033edc commit 5d7279e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/Zephyr/SystemTimeSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ namespace {

// Last known UTC time in Unix format.
#ifdef CHIP_DEVICE_CONFIG_FIRMWARE_BUILD_UNIX_TIME
Microseconds64 gRealTime = Seconds64(CHIP_DEVICE_CONFIG_FIRMWARE_BUILD_UNIX_TIME * UINT64_C(1000000));
Microseconds64 gRealTime = Seconds64(CHIP_DEVICE_CONFIG_FIRMWARE_BUILD_UNIX_TIME);
#else
Microseconds64 gRealTime = Seconds64(CHIP_SYSTEM_CONFIG_VALID_REAL_TIME_THRESHOLD * UINT64_C(1000000));
Microseconds64 gRealTime = Seconds64(CHIP_SYSTEM_CONFIG_VALID_REAL_TIME_THRESHOLD);
#endif

// Monotonic time of setting the last known UTC time.
Expand Down

0 comments on commit 5d7279e

Please sign in to comment.