We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45f487b commit 1ac0098Copy full SHA for 1ac0098
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