Skip to content

Commit 5956436

Browse files
committed
OTA: STM32H7 storage type is always QSPI_FLASH_FATFS_MBR
1 parent 44b5dc3 commit 5956436

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/ota/implementation/OTASTM32H7.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,9 @@ bool STM32H7OTACloudProcess::storageInit() {
153153
}
154154
}
155155

156-
if (storage == portenta::QSPI_FLASH_FATFS) {
157-
_fs = new mbed::FATFileSystem("fs");
158-
err_mount = _fs->mount(_bd_raw_qspi);
159-
} else if (storage == portenta::QSPI_FLASH_FATFS_MBR) {
160-
_bd = new mbed::MBRBlockDevice(_bd_raw_qspi, data_offset);
161-
_fs = new mbed::FATFileSystem("fs");
162-
err_mount = _fs->mount(_bd);
163-
}
156+
_bd = new mbed::MBRBlockDevice(_bd_raw_qspi, data_offset);
157+
_fs = new mbed::FATFileSystem("fs");
158+
err_mount = _fs->mount(_bd);
164159

165160
if (!err_mount) {
166161
return true;

0 commit comments

Comments
 (0)