diff options
| author | DavePutz <dwputz@gmail.com> | 2020-07-06 21:40:38 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-06 21:40:38 -0500 |
| commit | ab4a453006f3110fb4836708cb88521f126884df (patch) | |
| tree | 80c96585fab016c3da13051189c0ab2ca22ca533 | |
| parent | ac33c3fe2c8f8bd866b205ecb844b2f1b9fffcdd (diff) | |
Made requested changes
| -rw-r--r-- | ports/atmel-samd/supervisor/port.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/atmel-samd/supervisor/port.c b/ports/atmel-samd/supervisor/port.c index 05ce0eb09..9a09c7afa 100644 --- a/ports/atmel-samd/supervisor/port.c +++ b/ports/atmel-samd/supervisor/port.c @@ -507,7 +507,7 @@ void port_interrupt_after_ticks(uint32_t ticks) { return; } #ifdef SAMD21 - if (hold_interrupt == true) { + if (hold_interrupt) { return; } #endif @@ -525,7 +525,7 @@ void port_sleep_until_interrupt(void) { } #endif common_hal_mcu_disable_interrupts(); - if (!tud_task_event_ready()) { + if (!tud_task_event_ready() && !hold_interrupt) { __DSB(); __WFI(); } |
