Browse Source

MI - delete unnecessary MiInfoCommand

compiles, but untested yet; should work
pull/742/head
rejoe2 2 years ago
committed by GitHub
parent
commit
892ce44441
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/hm/hmInverter.h
  2. 4
      src/hm/miPayload.h

7
src/hm/hmInverter.h

@ -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
template<class T=float>
const calcFunc_t<T> calcFunctions[] = {

4
src/hm/miPayload.h

@ -199,7 +199,7 @@ class MiPayload {
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]));
iv->clearCmdQueue();
iv->enqueCommand<MiInfoCommand>(SystemConfigPara); // read back power limit
iv->enqueCommand<InfoCommand>(SystemConfigPara); // read back power limit
}
iv->devControlCmd = Init;
} 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?!?
DPRINTLN(DBG_INFO, "alarm ID incremented to " + String(iv->alarmMesIndex));
iv->enqueCommand<MiInfoCommand>(AlarmData);
iv->enqueCommand<InfoCommand>(AlarmData);
}
}

Loading…
Cancel
Save