Skip to content

Commit

Permalink
Fixed some minuor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gskjold committed Dec 10, 2023
1 parent 91958f5 commit c43c073
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
18 changes: 9 additions & 9 deletions lib/AmsConfiguration/include/AmsConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
#define CONFIG_METER_START 296
#define CONFIG_GPIO_START 368
#define CONFIG_PRICE_START 400
#define CONFIG_ENERGYACCOUNTING_START 464
#define CONFIG_WEB_START 488
#define CONFIG_DEBUG_START 624
#define CONFIG_NTP_START 632
#define CONFIG_MQTT_START 760
#define CONFIG_DOMOTICZ_START 1528
#define CONFIG_HA_START 1544
#define CONFIG_UI_START 1712
#define CONFIG_CLOUD_START 1728
#define CONFIG_ENERGYACCOUNTING_START 472
#define CONFIG_WEB_START 496
#define CONFIG_DEBUG_START 632
#define CONFIG_NTP_START 640
#define CONFIG_MQTT_START 768
#define CONFIG_DOMOTICZ_START 1536
#define CONFIG_HA_START 1552
#define CONFIG_UI_START 1720
#define CONFIG_CLOUD_START 1736

#define CONFIG_METER_START_103 32
#define CONFIG_UPGRADE_INFO_START_103 216
Expand Down
4 changes: 2 additions & 2 deletions lib/SvelteUi/app/dist/index.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion lib/SvelteUi/app/src/lib/DataStores.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ let sysinfo = {
f: null,
t: null
},
trying: null
trying: null,
if: {
eth: false
}
};
export const sysinfoStore = writable(sysinfo);
export async function getSysinfo() {
Expand Down
4 changes: 3 additions & 1 deletion lib/SvelteUi/app/src/lib/VendorPanel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import Mask from './Mask.svelte'
import { navigate } from 'svelte-navigator';
export let sysinfo = {}
export let sysinfo = {};
let loadingOrSaving = false;
async function handleSubmit(e) {
Expand All @@ -27,6 +27,8 @@
sysinfoStore.update(s => {
s.vndcfg = res.success;
s.booting = res.reboot;
s.if.eth = s.boardType > 240 && s.boardType < 250;
return s;
});
navigate(sysinfo.usrcfg ? "/" : "/setup");
Expand Down
1 change: 1 addition & 0 deletions lib/SvelteUi/src/AmsWebServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,7 @@ void AmsWebServer::handleSave() {
#endif
if(success) {
config->setGpioConfig(*gpioConfig);
config->setMeterConfig(meterConfig);

SystemConfig sys;
config->getSystemConfig(sys);
Expand Down

0 comments on commit c43c073

Please sign in to comment.