Skip to content

Commit a7842fc

Browse files
fixup! h7 fclose issue hotfix
1 parent 7317834 commit a7842fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ota/implementation/OTASTM32H7.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ OTACloudProcessInterface::State STM32H7OTACloudProcess::flashOTA() {
8989
STM32H747::writeBackupRegister(RTCBackup::DR0, 0x07AA);
9090
STM32H747::writeBackupRegister(RTCBackup::DR1, storage);
9191
STM32H747::writeBackupRegister(RTCBackup::DR2, data_offset);
92+
93+
if(_program_length == 0) {
94+
DEBUG_VERBOSE("Program length is 0");
95+
}
9296
STM32H747::writeBackupRegister(RTCBackup::DR3, _program_length);
9397

9498
return Reboot;

0 commit comments

Comments
 (0)