diff --git a/ports/stm32/boards/ARDUINO_PORTENTA_H7/board_init.c b/ports/stm32/boards/ARDUINO_PORTENTA_H7/board_init.c index 30b9e48760..39f7828773 100644 --- a/ports/stm32/boards/ARDUINO_PORTENTA_H7/board_init.c +++ b/ports/stm32/boards/ARDUINO_PORTENTA_H7/board_init.c @@ -162,7 +162,7 @@ void PORTENTA_board_low_power(int mode) { break; } - #if MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE + #if !MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE // Enable QSPI deepsleep for modes 1 and 2 mp_spiflash_deepsleep(&spi_bdev.spiflash, (mode != 0)); #endif