fix length of vacation string

This commit is contained in:
MichaelDvP
2024-05-03 09:37:50 +02:00
parent 476c8de82f
commit 7cec0e58a1
2 changed files with 1 additions and 2 deletions

View File

@@ -1517,7 +1517,6 @@ void Thermostat::process_RC35Timer(std::shared_ptr<const Telegram> telegram) {
// type 0x9A (HC1) // type 0x9A (HC1)
void Thermostat::process_RC30Vacation(std::shared_ptr<const Telegram> telegram) { void Thermostat::process_RC30Vacation(std::shared_ptr<const Telegram> telegram) {
uint8_t index = 0;
if ((telegram->offset + telegram->message_length) > 57) { if ((telegram->offset + telegram->message_length) > 57) {
return; return;
} }

View File

@@ -271,7 +271,7 @@ class Thermostat : public EMSdevice {
uint8_t humidity_; uint8_t humidity_;
uint8_t battery_; uint8_t battery_;
char vacation[8][21]; // RC30 only, only one hc char vacation[8][22]; // RC30 only, only one hc
// HybridHP // HybridHP
uint8_t hybridStrategy_; // co2 = 1, cost = 2, temperature = 3, mix = 4 uint8_t hybridStrategy_; // co2 = 1, cost = 2, temperature = 3, mix = 4