Correct millis() error causes by micros() overflow every about 72 minutes (#2438)
This commit is contained in:
parent
8ec76405b9
commit
71ec3c3e31
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user