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: sync.c
- Revision:
- 28:b4aa41fdeb68
- Parent:
- 26:0421132e6eaf
- Child:
- 32:f915ccb1ece3
diff -r 3d191d41e867 -r b4aa41fdeb68 sync.c
--- a/sync.c Thu Jan 25 11:17:27 2018 +0000
+++ b/sync.c Thu Jan 25 19:23:30 2018 +0000
@@ -112,5 +112,5 @@
lastExtClock = thisExtClock;
}
void SyncPpsI ( ) { TickSaveSnapshot(); }
-void SyncPpsN (time_t t ) { int64_t ticks = t << TICK_ONE_SECOND_SHIFT; sync(ticks); }
-void SyncTicks(int64_t ticks) { TickSaveSnapshot(); sync(ticks); }
+void SyncPpsN (time_t t ) { int64_t ticks = (int64_t)t << TICK_ONE_SECOND_SHIFT; sync(ticks); }
+void SyncTicks(int64_t ticks) { TickSaveSnapshot(); sync(ticks); }