mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-12 00:02:53 +00:00
Fixed some defaults
This commit is contained in:
parent
b52c580f6f
commit
abef32c73c
@ -705,7 +705,6 @@ bool AmsConfiguration::getUiConfig(UiConfig& config) {
|
||||
EEPROM.begin(EEPROM_SIZE);
|
||||
EEPROM.get(CONFIG_UI_START, config);
|
||||
if(config.showImport > 2) clearUiConfig(config); // Must be wrong
|
||||
if(config.showRealtimePlot > 2) config.showRealtimePlot = 1; // TODO: Move to new config version for v2.3
|
||||
EEPROM.end();
|
||||
return true;
|
||||
} else {
|
||||
@ -1073,6 +1072,7 @@ bool AmsConfiguration::relocateConfig103() {
|
||||
memset(web.context, 0, 37);
|
||||
|
||||
strcpy_P(ui.language, PSTR("en"));
|
||||
ui.showRealtimePlot = 2;
|
||||
ui.showPerPhasePower = 2;
|
||||
ui.showPowerFactor = 2;
|
||||
ui.darkMode = 2;
|
||||
|
||||
2
lib/SvelteUi/app/dist/index.js
vendored
2
lib/SvelteUi/app/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -407,7 +407,7 @@
|
||||
<option value={10}>7E1</option>
|
||||
<option value={11}>8E1</option>
|
||||
</select>
|
||||
<input name="ms" type="number" bind:value={configuration.m.s} min={64} max={sysinfo.chip == 'esp8266' ? configuration.i.h.p == 3 || configuration.i.h.p == 113 ? 512 : 128 : 4096} step={64} class="in-l tr w-1/2">
|
||||
<input name="ms" type="number" bind:value={configuration.m.s} min={64} max={sysinfo.chip == 'esp8266' ? configuration.i.h.p == 3 || configuration.i.h.p == 113 ? 512 : 256 : 4096} step={64} class="in-l tr w-1/2">
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user