Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: clk/clkutc.c
- Revision:
- 50:b804e93ccc1e
- Parent:
- 49:e4424cc18bcb
- Child:
- 51:826c58fbfaed
diff -r e4424cc18bcb -r b804e93ccc1e clk/clkutc.c
--- a/clk/clkutc.c Wed Jan 09 12:23:26 2019 +0000
+++ b/clk/clkutc.c Wed Jan 09 18:22:00 2019 +0000
@@ -90,7 +90,7 @@
if (!ClkUtcNextLeapEnable) return; //Do nothing if leaps are disabled
int64_t utc = ClkUtcFromTai(tai);
- int64_t leapStart = ClkUtcNextLeapSecond64 - ClkUtcNextLeapBackward ? 1 : 0;
+ int64_t leapStart = ClkUtcNextLeapSecond64 - (ClkUtcNextLeapBackward ? 1 : 0);
if (utc < leapStart) return; //Do nothing until reached the leap start