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: scan/scan.c
- Revision:
- 40:53666b1a5848
- Parent:
- 39:5b594b1b6a0a
--- a/scan/scan.c Mon Dec 03 12:50:10 2018 +0000
+++ b/scan/scan.c Tue Dec 04 12:26:27 2018 +0000
@@ -1,5 +1,5 @@
#include <stdint.h>
-#include "timer.h"
+#include "hrtimer.h"
uint32_t ScanAverage = 0;
uint32_t ScanMinimum = 10000;
@@ -12,7 +12,7 @@
bool firstScan = !scanTimer;
- uint32_t elapsed = TimerSinceRepetitive(&scanTimer);
+ uint32_t elapsed = HrTimerSinceRepetitive(&scanTimer);
if (firstScan) return;