Send ChannelChangeCommand only once per cycle as the inverter will not response at all

This commit is contained in:
Thomas Basler 2023-04-11 22:20:13 +02:00
parent ac7b5dba11
commit 8356db94b9
2 changed files with 8 additions and 0 deletions

View File

@ -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;
}

View File

@ -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();
}; };