Commit 71ec3c3e authored by Jeroen88's avatar Jeroen88 Committed by Me No Dev

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

parent 8ec76405
...@@ -115,7 +115,7 @@ unsigned long IRAM_ATTR micros() ...@@ -115,7 +115,7 @@ unsigned long IRAM_ATTR micros()
unsigned long IRAM_ATTR millis() 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) void delay(uint32_t ms)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment