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
Revision 76:c2035b7754fe, committed 2020-07-27
- Comitter:
- andrewboyson
- Date:
- Mon Jul 27 10:30:10 2020 +0000
- Parent:
- 75:09d473b1a67f
- Commit message:
- Corrected haveFullTime in sync time PPS
Changed in this revision
clk/clkgov.c | Show annotated file Show diff for this revision Revisions of this file |
diff -r 09d473b1a67f -r c2035b7754fe clk/clkgov.c --- a/clk/clkgov.c Tue Apr 14 16:09:53 2020 +0000 +++ b/clk/clkgov.c Mon Jul 27 10:30:10 2020 +0000 @@ -172,7 +172,7 @@ clktime time; time = (clktime)t << CLK_TIME_ONE_SECOND_SHIFT; time = ClkUtcToTai(time); - sync(time, false); + sync(time, true); } void ClkGovSyncPpsZ() { @@ -181,7 +181,7 @@ time += 1UL << (CLK_TIME_ONE_SECOND_SHIFT - 1); //Add half a second so as to round to nearest rather than round down time >>= CLK_TIME_ONE_SECOND_SHIFT; time <<= CLK_TIME_ONE_SECOND_SHIFT; - sync(time, true); + sync(time, false); }