From 0673293744699408ae42d86e78695ca505506fcf Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Mon, 2 Nov 2020 12:25:10 +0100 Subject: [PATCH] new _millis function definition --- include/globals.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/globals.h b/include/globals.h index 2e4320d5..acc0029f 100644 --- a/include/globals.h +++ b/include/globals.h @@ -60,6 +60,9 @@ ; \ } +// emulate millis to avoid rollovers +#define _millis() esp_timer_get_time() / 1000 + enum sendprio_t { prio_low, prio_normal, prio_high }; enum timesource_t { _gps, _rtc, _lora, _unsynced };