mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-31 01:36: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
|
||||
template<class T=float>
|
||||
const calcFunc_t<T> calcFunctions[] = {
|
||||
|
|
|
@ -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…
Add table
Add a link
Reference in a new issue