Increased buildserver limit to 5

This commit is contained in:
CommanderRedYT
2021-10-21 14:16:43 +02:00
committed by 0xFEEDC0DE64
parent 119ff94a36
commit be98bf0965
2 changed files with 5 additions and 5 deletions

View File

@ -327,12 +327,12 @@ StringSettings makeDefaultStringSettings()
.timeServer = "europe.pool.ntp.org",
#endif
#ifdef FEATURE_OTA
.otaServers = std::array<ConfiguredOtaServer, 2> {
.otaServers = std::array<ConfiguredOtaServer, 5> {
ConfiguredOtaServer { .name = {}, .url = {} },
ConfiguredOtaServer { .name = {}, .url = {} },/*
ConfiguredOtaServer { .name = {}, .url = {} },
ConfiguredOtaServer { .name = {}, .url = {} },
ConfiguredOtaServer { .name = {}, .url = {} },
ConfiguredOtaServer { .name = {}, .url = {} },/*
ConfiguredOtaServer { .name = {}, .url = {} },
ConfiguredOtaServer { .name = {}, .url = {} },
ConfiguredOtaServer { .name = {}, .url = {} },

View File

@ -43,7 +43,7 @@ struct StringSettings
std::string url;
};
std::array<ConfiguredOtaServer, 2> otaServers;
std::array<ConfiguredOtaServer, 5> otaServers;
std::string otaServerUrl;
#endif
};
@ -90,13 +90,13 @@ void StringSettings::executeForEveryCommonSetting(T &&callable)
callable("otaName0", otaServers[0].name);
callable("otaUrl0", otaServers[0].url);
callable("otaName1", otaServers[1].name);
callable("otaUrl1", otaServers[1].url);/*
callable("otaUrl1", otaServers[1].url);
callable("otaName2", otaServers[2].name);
callable("otaUrl2", otaServers[2].url);
callable("otaName3", otaServers[3].name);
callable("otaUrl3", otaServers[3].url);
callable("otaName4", otaServers[4].name);
callable("otaUrl4", otaServers[4].url);
callable("otaUrl4", otaServers[4].url);/*
callable("otaName5", otaServers[5].name);
callable("otaUrl5", otaServers[5].url);
callable("otaName6", otaServers[6].name);