We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac33c3f commit ab4a453Copy full SHA for ab4a453
ports/atmel-samd/supervisor/port.c
@@ -507,7 +507,7 @@ void port_interrupt_after_ticks(uint32_t ticks) {
507
return;
508
}
509
#ifdef SAMD21
510
- if (hold_interrupt == true) {
+ if (hold_interrupt) {
511
512
513
#endif
@@ -525,7 +525,7 @@ void port_sleep_until_interrupt(void) {
525
526
527
common_hal_mcu_disable_interrupts();
528
- if (!tud_task_event_ready()) {
+ if (!tud_task_event_ready() && !hold_interrupt) {
529
__DSB();
530
__WFI();
531
0 commit comments