diff --git a/src/runtime/src/rtio_mgt.rs b/src/runtime/src/rtio_mgt.rs index ce91e2d6..0b6fc804 100644 --- a/src/runtime/src/rtio_mgt.rs +++ b/src/runtime/src/rtio_mgt.rs @@ -328,7 +328,8 @@ fn async_error_thread() { loop { unsafe { // replaced io.until with spinlock - while csr::rtio_core::async_error_read() != 0 {} + // could potentially put a sleep in there? + while csr::rtio_core::async_error_read() == 0 {} let errors = csr::rtio_core::async_error_read(); if errors & 1 != 0 {