Some minor changes

This commit is contained in:
Gunnar Skjold 2022-11-29 21:02:23 +01:00
parent 63a8d79b95
commit c7b8090634
3 changed files with 2 additions and 7 deletions

View File

@ -108,10 +108,6 @@
</div>
</div>
{/if}
<div class="my-3">
<label><input type="checkbox" name="sf" value="true" class="rounded mb-1"/> Enable one-click upgrade (implies data collection)</label><br/>
<a href="https://github.com/gskjold/AmsToMqttBridge/wiki/Data-collection-on-one-click-firmware-upgrade" target="_blank" class="text-blue-600 hover:text-blue-800">Read more</a>
</div>
<div class="my-3">
<button type="submit" class="btn-pri">Save</button>
</div>

View File

@ -29,7 +29,7 @@
s.booting = res.reboot;
return s;
});
navigate("/");
navigate("/setup");
}
</script>

View File

@ -1031,8 +1031,7 @@ void AmsWebServer::handleSave() {
config->setMeterConfig(*meterConfig);
sys.userConfigured = success;
//TODO sys.country
sys.dataCollectionConsent = server.hasArg(F("sf")) && server.arg(F("sf")) == F("true") ? 1 : 2;
sys.dataCollectionConsent = 0;
config->setSystemConfig(sys);
performRestart = true;