From 7cec0e58a1c3d62af0da15cf935bdb50c040aed7 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Fri, 3 May 2024 09:37:50 +0200 Subject: [PATCH] fix length of vacation string --- src/devices/thermostat.cpp | 1 - src/devices/thermostat.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index 9cc3943a3..068aac08f 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -1517,7 +1517,6 @@ void Thermostat::process_RC35Timer(std::shared_ptr telegram) { // type 0x9A (HC1) void Thermostat::process_RC30Vacation(std::shared_ptr telegram) { - uint8_t index = 0; if ((telegram->offset + telegram->message_length) > 57) { return; } diff --git a/src/devices/thermostat.h b/src/devices/thermostat.h index c46899a5a..990dd83e3 100644 --- a/src/devices/thermostat.h +++ b/src/devices/thermostat.h @@ -271,7 +271,7 @@ class Thermostat : public EMSdevice { uint8_t humidity_; uint8_t battery_; - char vacation[8][21]; // RC30 only, only one hc + char vacation[8][22]; // RC30 only, only one hc // HybridHP uint8_t hybridStrategy_; // co2 = 1, cost = 2, temperature = 3, mix = 4