mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-04-29 13:22:59 +00:00
Fixed crash when enabling substitute values in meter config
This commit is contained in:
@@ -926,7 +926,7 @@ void AmsWebServer::handleSave() {
|
|||||||
authenticationKeyHex.replace("0x", "");
|
authenticationKeyHex.replace("0x", "");
|
||||||
fromHex(meterConfig->authenticationKey, authenticationKeyHex, 16);
|
fromHex(meterConfig->authenticationKey, authenticationKeyHex, 16);
|
||||||
}
|
}
|
||||||
meterConfig->substituteMissing = server.hasArg("s") && server.arg("substituteMissing") == "true";
|
meterConfig->substituteMissing = server.hasArg("s") && server.arg("s") == "true";
|
||||||
config->setMeterConfig(*meterConfig);
|
config->setMeterConfig(*meterConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user