Skip to content
Snippets Groups Projects
Commit d6f36cfa authored by rahix's avatar rahix
Browse files

sim: Fix sys_kernel re-importing host time module

By importing `_time` in `freertos_sleep()`, the host time module was
imported as `time` again as well, breaking all later code using e.g.
`time.ticks_ms()`.

Fix this by using `time` in `sys_kernel.freertos_sleep()` as well.
parent 7fed18fa
No related branches found
No related tags found
No related merge requests found
......@@ -24,9 +24,9 @@ def usb_console_active():
def freertos_sleep(ms):
import _time
import time
_time.sleep(ms / 1000.0)
time.sleep(ms / 1000.0)
def i2c_scan():
......
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