mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
fix
This commit is contained in:
parent
162f356ece
commit
01dbe92783
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user