Skip to content

Commit 678800c

Browse files
committed
Allow unsecure OTA build without SDMMC support
1 parent c688839 commit 678800c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/ota/ota.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,12 @@ int tryOTA(enum storageType storage_type, uint32_t data_offset, uint32_t update_
8383
bd = &qspi_flash;
8484
}
8585
if (storage_type & SDCARD_FLAG) {
86+
#if MCUBOOT_APPLICATION_SDCARD
8687
BOOT_LOG_DBG(" SD_FLASH ");
8788
bd = new SDMMCBlockDevice();
89+
#else
90+
BOOT_LOG_ERR(" SD NOT SUPPORTED");
91+
#endif
8892
}
8993
if (storage_type & MBR_FLAG) {
9094
BOOT_LOG_DBG(" MBR ");

0 commit comments

Comments
 (0)