Skip to content

Commit ec40c4c

Browse files
lbernstoneme-no-dev
authored andcommitted
Cast TimerWakeup conversion factor as ULL (#3027)
1 parent 2bda4a9 commit ec40c4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP32/examples/DeepSleep/TimerWakeUp/TimerWakeUp.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Author:
1919
Pranav Cherukupalli <[email protected]>
2020
*/
2121

22-
#define uS_TO_S_FACTOR 1000000 /* Conversion factor for micro seconds to seconds */
22+
#define uS_TO_S_FACTOR 1000000ULL /* Conversion factor for micro seconds to seconds */
2323
#define TIME_TO_SLEEP 5 /* Time ESP32 will go to sleep (in seconds) */
2424

2525
RTC_DATA_ATTR int bootCount = 0;

0 commit comments

Comments
 (0)