diff options
| author | iabdalkader <i.abdalkader@gmail.com> | 2023-02-14 10:31:26 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-02-16 12:21:48 +1100 |
| commit | e140c7d26ae1fbd0878012efd4f48c7b638296e2 (patch) | |
| tree | c08ba4c021f97bfce53a313143fe8c801e1f21a2 | |
| parent | 75e7e7d034cff8e73070faa2d7b5df88d3367ae1 (diff) | |
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.
| -rw-r--r-- | ports/stm32/boards/ARDUINO_PORTENTA_H7/board_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/boards/ARDUINO_PORTENTA_H7/board_init.c b/ports/stm32/boards/ARDUINO_PORTENTA_H7/board_init.c index 30b9e4876..39f782877 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 |
