diff --git a/lib/Hoymiles/src/commands/ChannelChangeCommand.cpp b/lib/Hoymiles/src/commands/ChannelChangeCommand.cpp index ad89f2d5..227ade1e 100644 --- a/lib/Hoymiles/src/commands/ChannelChangeCommand.cpp +++ b/lib/Hoymiles/src/commands/ChannelChangeCommand.cpp @@ -72,7 +72,7 @@ bool ChannelChangeCommand::handleResponse(const fragment_t fragment[], const uin return true; } -uint8_t ChannelChangeCommand::getMaxResendCount() +uint8_t ChannelChangeCommand::getMaxResendCount() const { // This command will never retrieve an answer. Therefor it's not required to repeat it return 0; diff --git a/lib/Hoymiles/src/commands/ChannelChangeCommand.h b/lib/Hoymiles/src/commands/ChannelChangeCommand.h index 62d0e880..66d4f7c5 100644 --- a/lib/Hoymiles/src/commands/ChannelChangeCommand.h +++ b/lib/Hoymiles/src/commands/ChannelChangeCommand.h @@ -17,5 +17,5 @@ public: virtual bool handleResponse(const fragment_t fragment[], const uint8_t max_fragment_id); - virtual uint8_t getMaxResendCount(); + virtual uint8_t getMaxResendCount() const; };