diff --git a/src/config/settings.h b/src/config/settings.h index 7d924c4e..dc5a4408 100644 --- a/src/config/settings.h +++ b/src/config/settings.h @@ -607,8 +607,8 @@ class settings { getChar(obj, F("name"), cfg->name, MAX_NAME_LENGTH); getVal(obj, F("sn"), &cfg->serial.u64); for(uint8_t i = 0; i < 4; i++) { - getVal(obj, F("yield"), &cfg->yieldCor[i]); - getVal(obj, F("pwr"), &cfg->chMaxPwr[i]); + if(obj.containsKey(F("yield"))) cfg->yieldCor[i] = obj[F("yield")][i]; + if(obj.containsKey(F("pwr"))) cfg->chMaxPwr[i] = obj[F("pwr")][i]; if(obj.containsKey(F("chName"))) snprintf(cfg->chName[i], MAX_NAME_LENGTH, "%s", obj[F("chName")][i].as()); } }