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.
This commit is contained in:
iabdalkader 2023-02-14 10:31:26 +01:00 committed by Damien George
parent 75e7e7d034
commit e140c7d26a
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ void PORTENTA_board_low_power(int mode) {
break; break;
} }
#if MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE #if !MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE
// Enable QSPI deepsleep for modes 1 and 2 // Enable QSPI deepsleep for modes 1 and 2
mp_spiflash_deepsleep(&spi_bdev.spiflash, (mode != 0)); mp_spiflash_deepsleep(&spi_bdev.spiflash, (mode != 0));
#endif #endif