Andrew Boyson / clock

Dependents:   oldheating gps motorhome heating

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;