Merge branch 'adafruit:main' into pycubed_v05c

This commit is contained in:
Max Holliday 2021-09-16 12:12:36 -06:00 committed by GitHub
commit 0f8cb5618f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,8 +238,9 @@ void port_interrupt_after_ticks(uint32_t ticks) {
void port_idle_until_interrupt(void) {
common_hal_mcu_disable_interrupts();
if (!background_callback_pending()) {
asm volatile ("dsb 0xF" ::: "memory");
__wfi();
// TODO: Does not work when board is power-cycled.
// asm volatile ("dsb 0xF" ::: "memory");
// __wfi();
}
common_hal_mcu_enable_interrupts();
}