Fixed some defaults

This commit is contained in:
Gunnar Skjold 2024-04-07 12:01:05 +02:00
parent b52c580f6f
commit abef32c73c
3 changed files with 3 additions and 3 deletions

View File

@ -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;

File diff suppressed because one or more lines are too long

View File

@ -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}