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.
pull/10750/head
iabdalkader 2023-02-14 10:31:26 +01:00 zatwierdzone przez Damien George
rodzic 75e7e7d034
commit e140c7d26a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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