'while' is reverse of 'until'...

drtio_port
mwojcik 2021-09-20 15:03:49 +02:00
parent 414cfd2fa7
commit 241113c6b2
1 changed files with 2 additions and 1 deletions

View File

@ -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 {