Skip to content

Commit 71ec3c3

Browse files
Jeroen88me-no-dev
Jeroen88
authored andcommitted
Correct millis() error causes by micros() overflow every about 72 minutes (#2438)
1 parent 8ec7640 commit 71ec3c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/esp32/esp32-hal-misc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ unsigned long IRAM_ATTR micros()
115115

116116
unsigned long IRAM_ATTR millis()
117117
{
118-
return (unsigned long) (esp_timer_get_time() / 1000);
118+
return (unsigned long) (esp_timer_get_time() / 1000ULL);
119119
}
120120

121121
void delay(uint32_t ms)

0 commit comments

Comments
 (0)