diff options
| author | sodo <[email protected]> | 2024-01-03 12:35:07 +0900 |
|---|---|---|
| committer | sodo <[email protected]> | 2024-01-03 12:35:07 +0900 |
| commit | 01dbe9278357296fe9fb99f5e6923e80067c4a98 (patch) | |
| tree | 6cb168e231ba7621547bab3d59150efb7693ef84 | |
| parent | 162f356ece8533d326df4acf918b3c4462bf486c (diff) | |
fix
| -rw-r--r-- | embassy-executor/src/arch/avr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-executor/src/arch/avr.rs b/embassy-executor/src/arch/avr.rs index 11e81ed9a..70085d04d 100644 --- a/embassy-executor/src/arch/avr.rs +++ b/embassy-executor/src/arch/avr.rs | |||
| @@ -58,7 +58,7 @@ mod thread { | |||
| 58 | loop { | 58 | loop { |
| 59 | unsafe { | 59 | unsafe { |
| 60 | avr_device::interrupt::disable(); | 60 | avr_device::interrupt::disable(); |
| 61 | if SIGNAL_WORK_THREAD_MODE.swap(false, Ordering::SeqCst) { | 61 | if !SIGNAL_WORK_THREAD_MODE.swap(false, Ordering::SeqCst) { |
| 62 | avr_device::interrupt::enable(); | 62 | avr_device::interrupt::enable(); |
| 63 | avr_device::asm::sleep(); | 63 | avr_device::asm::sleep(); |
| 64 | } else { | 64 | } else { |
