Skip to content
Snippets Groups Projects
Commit e673714c authored by Damien George's avatar Damien George Committed by Paul Sokolovsky
Browse files

esp8266: Make mp_hal_delay_us work with new event framework.

parent 58e2ad42
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,10 @@ void mp_hal_feed_watchdog(void) {
}
void mp_hal_delay_us(uint32_t us) {
ets_delay_us(us);
uint32_t start = system_get_time();
while (system_get_time() - start < us) {
ets_event_poll();
}
}
int mp_hal_stdin_rx_chr(void) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment