Skip to content
Snippets Groups Projects
  • rahix's avatar
    31eeca89
    sim: Fix sys_kernel re-importing host time module · 31eeca89
    rahix authored and rahix's avatar rahix committed
    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.
    31eeca89
    History
    sim: Fix sys_kernel re-importing host time module
    rahix authored and rahix's avatar rahix committed
    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.