Correct millis() error causes by micros() overflow every about 72 minutes (#2438)

This commit is contained in:
Jeroen88 2019-02-14 13:09:51 +01:00 committed by Me No Dev
parent 8ec76405b9
commit 71ec3c3e31

View File

@ -115,7 +115,7 @@ unsigned long IRAM_ATTR micros()
unsigned long IRAM_ATTR millis()
{
return (unsigned long) (esp_timer_get_time() / 1000);
return (unsigned long) (esp_timer_get_time() / 1000ULL);
}
void delay(uint32_t ms)