We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4edf9b4 commit 8143741Copy full SHA for 8143741
src/ota/implementation/OTASTM32H7.cpp
@@ -62,6 +62,9 @@ OTACloudProcessInterface::State STM32H7OTACloudProcess::startOTA() {
62
63
decompressed = fopen(_filename.c_str(), "wb");
64
65
+ if(decompressed == nullptr) {
66
+ return ErrorOpenUpdateFileFail;
67
+ }
68
// start the download if the setup for ota storage is successful
69
return OTADefaultCloudProcessInterface::startOTA();
70
}
0 commit comments