DPRINTLN(DBG_INFO,F("Inverter ")+String(iv->id)+F(" has accepted power limit set point ")+String(iv->powerLimit[0])+F(" with PowerLimitControl ")+String(iv->powerLimit[1])+F(", written to dtu eeprom"));
}else
DPRINTLN(DBG_INFO,F("Inverter ")+String(iv->id)+F(" has accepted power limit set point ")+String(iv->powerLimit[0])+F(" with PowerLimitControl ")+String(iv->powerLimit[1]));
iv->devControlCmd=Init;
}
break;
default:
if(iv->devControlCmd==ActivePowerContr){
//case inverter did not accept the sent limit; set back to last stored limit
DPRINTLN(DBG_INFO,F("Inverter ")+String(iv->id)+F(" has accepted power limit set point ")+String(iv->powerLimit[0])+F(" with PowerLimitControl ")+String(iv->powerLimit[1]));
else
DPRINTLN(DBG_INFO,F("Inverter ")+String(iv->id)+F(" has NOT accepted power limit set point")+String(iv->powerLimit[0])+F(" with PowerLimitControl ")+String(iv->powerLimit[1]));
DPRINTLN(DBG_INFO,F("Requesting Inverter SN ")+String(iv->serial.u64,HEX));
}
if(iv->devControlRequest&&((iv->devControlCmd!=ActivePowerContr)||((iv->devControlCmd==ActivePowerContr)&&(iv->powerLimit[0]>0)&&(iv->powerLimit[1]!=NoPowerLimit)))){// prevent to "switch off"
if(iv->devControlRequest){
if(mConfig.serialDebug)
DPRINTLN(DBG_INFO,F("Devcontrol request ")+String(iv->devControlCmd)+F(" power limit ")+String(iv->powerLimit[0]));