Fixed price from config file reboot loop (#1172)

This commit is contained in:
Gunnar Skjold
2026-04-09 09:48:02 +02:00
committed by GitHub
parent fb4eea8208
commit f0c3873635
4 changed files with 12 additions and 7 deletions

View File

@@ -2111,6 +2111,7 @@ void configFileParse() {
if(!lPrice) { config.getPriceServiceConfig(price); lPrice = true; };
strcpy(price.currency, buf+14);
} else if(strncmp_P(buf, PSTR("priceModifier "), 14) == 0) {
if(ps == NULL) ps = new PriceService(&Debug);
PriceConfig pc;
memset(&pc, 0, sizeof(PriceConfig));