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 75ba17e commit 3c66a55Copy full SHA for 3c66a55
ports/raspberrypi/supervisor/internal_flash.c
@@ -99,11 +99,15 @@ void port_internal_flash_flush(void) {
99
// Make sure we don't have an interrupt while we do flash operations.
100
common_hal_mcu_disable_interrupts();
101
// and audio DMA must be paused as well
102
+ #if CIRCUITPY_AUDIOCORE
103
uint32_t channel_mask = audio_dma_pause_all();
104
+ #endif
105
flash_range_erase(CIRCUITPY_CIRCUITPY_DRIVE_START_ADDR + _cache_lba, SECTOR_SIZE);
106
flash_range_program(CIRCUITPY_CIRCUITPY_DRIVE_START_ADDR + _cache_lba, _cache, SECTOR_SIZE);
107
_cache_lba = NO_CACHE;
108
109
audio_dma_unpause_mask(channel_mask);
110
111
common_hal_mcu_enable_interrupts();
112
}
113
0 commit comments