Code cleanup

This commit is contained in:
fvanroie 2021-06-26 02:57:52 +02:00
parent a751569bde
commit ef8413234f

View File

@ -89,10 +89,6 @@ bool otaUpdateCheck()
if(jsonError) { // Couldn't parse the returned JSON, so bail if(jsonError) { // Couldn't parse the returned JSON, so bail
dispatch_json_error(TAG_OTA, jsonError); dispatch_json_error(TAG_OTA, jsonError);
// mqttClient.publish(mqttStateJSONTopic,
// String(F("{\"event\":\"jsonError\",\"event_source\":\"updateCheck()\",\"event_description\":"
// "\"Failed to parse incoming JSON command with error\"")) +
// String(jsonError.c_str()));
return false; return false;
} else { } else {
if(!updateJson["d1_mini"]["version"].isNull()) { if(!updateJson["d1_mini"]["version"].isNull()) {