We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9845d71 commit 71f7e72Copy full SHA for 71f7e72
xs/platforms/esp/xsHost.h
@@ -153,8 +153,8 @@ extern uint8_t ESP_setBaud(int baud);
153
*/
154
155
#if ESP32
156
- #define modMilliseconds() ((uint32_t)(UINT32_MAX - 10000 + xTaskGetTickCount()))
157
- #define modMicroseconds() ((uint32_t)(esp_timer_get_time()))
+ #define modMilliseconds() ((uint32_t)xTaskGetTickCount())
+ #define modMicroseconds() ((uint32_t)esp_timer_get_time())
158
159
#define modDelayMilliseconds(ms) vTaskDelay(ms)
160
#define modDelayMicroseconds(us) vTaskDelay(((us) + 500) / 1000)
0 commit comments