Skip to content

Commit 89dddf7

Browse files
committed
OTA: handle requestOta return value
1 parent 3b4265b commit 89dddf7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ota/interface/OTAInterfaceDefault.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ OTACloudProcessInterface::State OTADefaultCloudProcessInterface::startOTA() {
5050
}
5151

5252
// make the http get request
53-
requestOta(OtaFetchTime);
53+
OTACloudProcessInterface::State res = requestOta(OtaFetchTime);
54+
if(res != Fetch) {
55+
return res;
56+
}
5457

5558
// The following call is required to save the header value , keep it
5659
context->contentLength = http_client->contentLength();

0 commit comments

Comments
 (0)