mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-12 00:02:53 +00:00
Only allow board type overwrite from config if not set
This commit is contained in:
parent
94ff9d6da7
commit
13b437d948
@ -1620,7 +1620,9 @@ void configFileParse() {
|
||||
}
|
||||
if(strncmp_P(buf, PSTR("boardType "), 10) == 0) {
|
||||
if(!lSys) { config.getSystemConfig(sys); lSys = true; };
|
||||
sys.boardType = String(buf+10).toInt();
|
||||
if(sys.boardType == 0xFF) {
|
||||
sys.boardType = String(buf+10).toInt();
|
||||
}
|
||||
} else if(strncmp_P(buf, PSTR("netmode "), 8) == 0) {
|
||||
if(!lNetwork) { config.getNetworkConfig(network); lNetwork = true; };
|
||||
network.mode = String(buf+8).toInt();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user