mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
fix
This commit is contained in:
parent
162f356ece
commit
01dbe92783
@ -58,7 +58,7 @@ mod thread {
|
||||
loop {
|
||||
unsafe {
|
||||
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::asm::sleep();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user