Fixed issue where authentication key got corrupted from configfile upload

This commit is contained in:
Gunnar Skjold
2023-02-02 16:15:03 +01:00
parent de19de2129
commit c2c5855e6a

View File

@@ -1600,7 +1600,7 @@ void configFileParse() {
fromHex(meter.encryptionKey, String(buf+19), 16);
} else if(strncmp_P(buf, PSTR("meterAuthenticationKey "), 23) == 0) {
if(!lMeter) { config.getMeterConfig(meter); lMeter = true; };
fromHex(meter.authenticationKey, String(buf+19), 16);
fromHex(meter.authenticationKey, String(buf+23), 16);
} else if(strncmp_P(buf, PSTR("gpioHanPin "), 11) == 0) {
if(!lGpio) { config.getGpioConfig(gpio); lGpio = true; };
gpio.hanPin = String(buf+11).toInt();