Skip to content

Commit 4888d27

Browse files
committed
OTA: STM32H7 remove storage variable
1 parent 603acd5 commit 4888d27

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/ota/implementation/OTASTM32H7.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ OTACloudProcessInterface::State STM32H7OTACloudProcess::flashOTA() {
8484

8585
// this sets the registries in RTC to load the firmware from the storage selected at the next reboot
8686
STM32H747::writeBackupRegister(RTCBackup::DR0, 0x07AA);
87-
STM32H747::writeBackupRegister(RTCBackup::DR1, storage);
87+
STM32H747::writeBackupRegister(RTCBackup::DR1, STM32H747OTA::StorageType::QSPI_FLASH_FATFS_MBR);
8888
STM32H747::writeBackupRegister(RTCBackup::DR2, data_offset);
8989
STM32H747::writeBackupRegister(RTCBackup::DR3, _program_length);
9090

src/ota/implementation/OTASTM32H7.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ class STM32H7OTACloudProcess: public OTADefaultCloudProcessInterface {
7878
mbed::BlockDevice* _bd;
7979
mbed::FATFileSystem* _fs;
8080

81-
const STM32H747OTA::StorageType storage=STM32H747OTA::QSPI_FLASH_FATFS_MBR;
8281
const uint32_t data_offset=2;
8382

8483
static const char UPDATE_FILE_NAME[];

0 commit comments

Comments
 (0)