Skip to content

Commit ab4a453

Browse files
authored
Made requested changes
1 parent ac33c3f commit ab4a453

File tree

1 file changed

+2
-2
lines changed
  • ports/atmel-samd/supervisor

1 file changed

+2
-2
lines changed

ports/atmel-samd/supervisor/port.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ void port_interrupt_after_ticks(uint32_t ticks) {
507507
return;
508508
}
509509
#ifdef SAMD21
510-
if (hold_interrupt == true) {
510+
if (hold_interrupt) {
511511
return;
512512
}
513513
#endif
@@ -525,7 +525,7 @@ void port_sleep_until_interrupt(void) {
525525
}
526526
#endif
527527
common_hal_mcu_disable_interrupts();
528-
if (!tud_task_event_ready()) {
528+
if (!tud_task_event_ready() && !hold_interrupt) {
529529
__DSB();
530530
__WFI();
531531
}

0 commit comments

Comments
 (0)