mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-24 06:16:11 +02:00
MI - delete unnecessary MiInfoCommand
compiles, but untested yet; should work
This commit is contained in:
parent
4eed422cac
commit
892ce44441
2 changed files with 3 additions and 10 deletions
|
@ -90,13 +90,6 @@ class InfoCommand : public CommandAbstract {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class MiInfoCommand : public CommandAbstract {
|
|
||||||
public:
|
|
||||||
MiInfoCommand(uint8_t cmd){
|
|
||||||
_TxType = cmd;
|
|
||||||
_Cmd = cmd;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
// list of all available functions, mapped in hmDefines.h
|
// list of all available functions, mapped in hmDefines.h
|
||||||
template<class T=float>
|
template<class T=float>
|
||||||
const calcFunc_t<T> calcFunctions[] = {
|
const calcFunc_t<T> calcFunctions[] = {
|
||||||
|
|
|
@ -199,7 +199,7 @@ class MiPayload {
|
||||||
msg = "NOT ";
|
msg = "NOT ";
|
||||||
DPRINTLN(DBG_INFO, F("Inverter ") + String(iv->id) + F(" has ") + msg + F("accepted power limit set point ") + String(iv->powerLimit[0]) + F(" with PowerLimitControl ") + String(iv->powerLimit[1]));
|
DPRINTLN(DBG_INFO, F("Inverter ") + String(iv->id) + F(" has ") + msg + F("accepted power limit set point ") + String(iv->powerLimit[0]) + F(" with PowerLimitControl ") + String(iv->powerLimit[1]));
|
||||||
iv->clearCmdQueue();
|
iv->clearCmdQueue();
|
||||||
iv->enqueCommand<MiInfoCommand>(SystemConfigPara); // read back power limit
|
iv->enqueCommand<InfoCommand>(SystemConfigPara); // read back power limit
|
||||||
}
|
}
|
||||||
iv->devControlCmd = Init;
|
iv->devControlCmd = Init;
|
||||||
} else { // some other response; copied from hmPayload:process; might not be correct to do that here!!!
|
} else { // some other response; copied from hmPayload:process; might not be correct to do that here!!!
|
||||||
|
@ -413,7 +413,7 @@ class MiPayload {
|
||||||
iv->alarmMesIndex = rec->record[iv->getPosByChFld(0, FLD_EVT, rec)]; // seems there's no status per channel in 3rd gen. models?!?
|
iv->alarmMesIndex = rec->record[iv->getPosByChFld(0, FLD_EVT, rec)]; // seems there's no status per channel in 3rd gen. models?!?
|
||||||
|
|
||||||
DPRINTLN(DBG_INFO, "alarm ID incremented to " + String(iv->alarmMesIndex));
|
DPRINTLN(DBG_INFO, "alarm ID incremented to " + String(iv->alarmMesIndex));
|
||||||
iv->enqueCommand<MiInfoCommand>(AlarmData);
|
iv->enqueCommand<InfoCommand>(AlarmData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -481,7 +481,7 @@ class MiPayload {
|
||||||
ac_pow = calcPowerDcCh0(iv, 0)*9.5;
|
ac_pow = calcPowerDcCh0(iv, 0)*9.5;
|
||||||
//}
|
//}
|
||||||
iv->setValue(iv->getPosByChFld(0, FLD_PAC, rec), rec, (float) (ac_pow/10));
|
iv->setValue(iv->getPosByChFld(0, FLD_PAC, rec), rec, (float) (ac_pow/10));
|
||||||
|
|
||||||
if ( mPayload[iv->id].sts[0] ) {
|
if ( mPayload[iv->id].sts[0] ) {
|
||||||
uint8_t cmd = mPayload[iv->id].dataAB[0] ? 0x11 : 0x09;
|
uint8_t cmd = mPayload[iv->id].dataAB[0] ? 0x11 : 0x09;
|
||||||
if ( mPayload[iv->id].dataAB[0] && mPayload[iv->id].dataAB[1] ) {
|
if ( mPayload[iv->id].dataAB[0] && mPayload[iv->id].dataAB[1] ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue