If server-url ends with .bin, otaUrl will be set directly to server-url

This commit is contained in:
CommanderRedYT
2021-10-21 20:19:14 +02:00
committed by 0xFEEDC0DE64
parent 887c43da27
commit 1448ed088a

View File

@ -40,6 +40,10 @@ public:
void triggered() override
{
stringSettings.otaServerUrl = m_buildserver_url;
if (m_buildserver_url.substr(m_buildserver_url.length() - 4) == ".bin")
{
stringSettings.otaUrl = m_buildserver_url;
}
saveSettings();
redownload = true;
url_for_latest.clear();