mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-28 16:07:16 +02:00
Skip fetch configuration on boot when configuration control is local
This commit is contained in:
@ -1047,6 +1047,10 @@ void initializeNetwork() {
|
|||||||
sendDataToAg();
|
sendDataToAg();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Skip fetch configuration if configuration control is set to "local" only
|
||||||
|
if (configuration.getConfigurationControl() == ConfigurationControl::ConfigurationControlLocal) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
std::string config = agClient->httpFetchConfig();
|
std::string config = agClient->httpFetchConfig();
|
||||||
configSchedule.update();
|
configSchedule.update();
|
||||||
|
Reference in New Issue
Block a user