Amend error code
This commit is contained in:
@@ -207,7 +207,7 @@ OtaUpdater::OtaUpdaterError OtaUpdater::checkForUpdate() {
|
|||||||
const JsonVariantConst release = selectRelease(doc);
|
const JsonVariantConst release = selectRelease(doc);
|
||||||
if (release.isNull()) {
|
if (release.isNull()) {
|
||||||
LOG_ERR("OTA", "No release found in response");
|
LOG_ERR("OTA", "No release found in response");
|
||||||
return JSON_PARSE_ERROR;
|
return NO_UPDATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!release["tag_name"].is<std::string>()) {
|
if (!release["tag_name"].is<std::string>()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user