Send ChannelChangeCommand only once per cycle as the inverter will not response at all
This commit is contained in:
parent
ac7b5dba11
commit
8356db94b9
@ -37,3 +37,9 @@ bool ChannelChangeCommand::handleResponse(InverterAbstract* inverter, fragment_t
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t ChannelChangeCommand::getMaxResendCount()
|
||||||
|
{
|
||||||
|
// This command will never retrieve an answer. Therefor it's not required to repeat it
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@ -13,4 +13,6 @@ public:
|
|||||||
uint8_t getChannel();
|
uint8_t getChannel();
|
||||||
|
|
||||||
virtual bool handleResponse(InverterAbstract* inverter, fragment_t fragment[], uint8_t max_fragment_id);
|
virtual bool handleResponse(InverterAbstract* inverter, fragment_t fragment[], uint8_t max_fragment_id);
|
||||||
|
|
||||||
|
virtual uint8_t getMaxResendCount();
|
||||||
};
|
};
|
||||||
Loading…
Reference in New Issue
Block a user