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:
parent
75e7e7d034
commit
e140c7d26a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user