From 1f3f275689062e0715073f2fdd4484e09e27e751 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Wed, 9 Apr 2025 18:48:09 +0200 Subject: [PATCH] Use correct signature for getMaxResendCount --- lib/Hoymiles/src/commands/ChannelChangeCommand.cpp | 2 +- lib/Hoymiles/src/commands/ChannelChangeCommand.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; };