mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-20 18:07:52 +00:00
Some minor changes
This commit is contained in:
parent
63a8d79b95
commit
c7b8090634
@ -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>
|
||||
|
||||
@ -29,7 +29,7 @@
|
||||
s.booting = res.reboot;
|
||||
return s;
|
||||
});
|
||||
navigate("/");
|
||||
navigate("/setup");
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user