We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e6fe5a commit 7ba5c37Copy full SHA for 7ba5c37
src/ota/implementation/OTAUnoR4.cpp
@@ -73,7 +73,7 @@ OTACloudProcessInterface::State UNOR4OTACloudProcess::fetch() {
73
74
if(progress < context->downloadSize) {
75
return Fetch;
76
- } else if(progress > context->downloadSize) {
+ } else if(progress > context->downloadSize || progress < 0) {
77
return OtaDownloadFail;
78
} else {
79
return FlashOTA;
0 commit comments