Skip to content

Commit 7317834

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ota/implementation/OTASTM32H7.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ OTACloudProcessInterface::State STM32H7OTACloudProcess::startOTA() {
7676

7777
OTACloudProcessInterface::State STM32H7OTACloudProcess::flashOTA() {
7878
fclose(decompressed);
79+
decompressed = nullptr;
7980

8081
/* Schedule the firmware update. */
8182
if(!storageOpen()) {

0 commit comments

Comments
 (0)