Skip to content

Commit

Permalink
Fixed some defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
gskjold committed Apr 7, 2024
1 parent b52c580 commit abef32c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/AmsConfiguration/src/AmsConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/SvelteUi/app/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/SvelteUi/app/src/lib/ConfigurationPanel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit abef32c

Please sign in to comment.