From e140c7d26ae1fbd0878012efd4f48c7b638296e2 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Tue, 14 Feb 2023 10:31:26 +0100 Subject: [PATCH] stm32/boards/ARDUINO_PORTENTA_H7: Fix macro value check for QSPI. QSPI deepsleep should be enabled only when the internal flash storage is not used. --- ports/stm32/boards/ARDUINO_PORTENTA_H7/board_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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