This commit is contained in:
sodo 2024-01-03 12:35:07 +09:00
parent 162f356ece
commit 01dbe92783

View File

@ -58,7 +58,7 @@ mod thread {
loop { loop {
unsafe { unsafe {
avr_device::interrupt::disable(); avr_device::interrupt::disable();
if SIGNAL_WORK_THREAD_MODE.swap(false, Ordering::SeqCst) { if !SIGNAL_WORK_THREAD_MODE.swap(false, Ordering::SeqCst) {
avr_device::interrupt::enable(); avr_device::interrupt::enable();
avr_device::asm::sleep(); avr_device::asm::sleep();
} else { } else {