Skip to content

Commit

Permalink
OTA: handle requestOta return value
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Dec 11, 2024
1 parent 3b4265b commit 89dddf7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ota/interface/OTAInterfaceDefault.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ OTACloudProcessInterface::State OTADefaultCloudProcessInterface::startOTA() {
}

// make the http get request
requestOta(OtaFetchTime);
OTACloudProcessInterface::State res = requestOta(OtaFetchTime);
if(res != Fetch) {
return res;
}

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

0 comments on commit 89dddf7

Please sign in to comment.