Fix WebCfg ota link

This commit is contained in:
iranl
2024-03-03 23:01:52 +01:00
parent ac37cafc99
commit 63d35e5739
4 changed files with 12 additions and 12 deletions

View File

@@ -636,12 +636,10 @@ void WebCfgServer::buildHtml(String& response)
}
printParameter(response, "Firmware", version.c_str(), "/info");
const char* _latestVersion = _network->latestHubVersion();
if(_preferences->getBool(preference_check_updates))
{
//if(atof(_latestVersion) > atof(NUKI_HUB_VERSION) || (atof(_latestVersion) == atof(NUKI_HUB_VERSION) && _latestVersion != NUKI_HUB_VERSION)) {
printParameter(response, "Latest Firmware", _latestVersion, "/ota");
printParameter(response, "Latest Firmware", _preferences->getString(preference_latest_version).c_str(), "/ota");
//}
}