From ec40c4c96f9088956ed95f5207b9385f33689602 Mon Sep 17 00:00:00 2001 From: lbernstone Date: Tue, 20 Aug 2019 07:45:18 -0600 Subject: [PATCH] Cast TimerWakeup conversion factor as ULL (#3027) --- libraries/ESP32/examples/DeepSleep/TimerWakeUp/TimerWakeUp.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/ESP32/examples/DeepSleep/TimerWakeUp/TimerWakeUp.ino b/libraries/ESP32/examples/DeepSleep/TimerWakeUp/TimerWakeUp.ino index e8f280f3..ec43cf72 100644 --- a/libraries/ESP32/examples/DeepSleep/TimerWakeUp/TimerWakeUp.ino +++ b/libraries/ESP32/examples/DeepSleep/TimerWakeUp/TimerWakeUp.ino @@ -19,7 +19,7 @@ Author: Pranav Cherukupalli */ -#define uS_TO_S_FACTOR 1000000 /* Conversion factor for micro seconds to seconds */ +#define uS_TO_S_FACTOR 1000000ULL /* Conversion factor for micro seconds to seconds */ #define TIME_TO_SLEEP 5 /* Time ESP32 will go to sleep (in seconds) */ RTC_DATA_ATTR int bootCount = 0;