File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ OTACloudProcessInterface::State STM32H7OTACloudProcess::flashOTA() {
84
84
85
85
// this sets the registries in RTC to load the firmware from the storage selected at the next reboot
86
86
STM32H747::writeBackupRegister (RTCBackup::DR0, 0x07AA );
87
- STM32H747::writeBackupRegister (RTCBackup::DR1, storage );
87
+ STM32H747::writeBackupRegister (RTCBackup::DR1, STM32H747OTA::StorageType::QSPI_FLASH_FATFS_MBR );
88
88
STM32H747::writeBackupRegister (RTCBackup::DR2, data_offset);
89
89
STM32H747::writeBackupRegister (RTCBackup::DR3, _program_length);
90
90
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ class STM32H7OTACloudProcess: public OTADefaultCloudProcessInterface {
78
78
mbed::BlockDevice* _bd;
79
79
mbed::FATFileSystem* _fs;
80
80
81
- const STM32H747OTA::StorageType storage=STM32H747OTA::QSPI_FLASH_FATFS_MBR;
82
81
const uint32_t data_offset=2 ;
83
82
84
83
static const char UPDATE_FILE_NAME[];
You can’t perform that action at this time.
0 commit comments