From 17cefd6e4031396305a92ffd4ecc40775c449f05 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Fri, 30 Oct 2020 16:06:06 +0100 Subject: [PATCH] remove thermostat errormessage 0xBF --- src/devices/thermostat.cpp | 16 ---------------- src/devices/thermostat.h | 1 - 2 files changed, 17 deletions(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index 36eea00f7..9a00036c4 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -126,7 +126,6 @@ Thermostat::Thermostat(uint8_t device_type, uint8_t device_id, uint8_t product_i register_telegram_type(0x23A, F("RC300OutdoorTemp"), true, [&](std::shared_ptr t) { process_RC300OutdoorTemp(t); }); register_telegram_type(0x267, F("RC300Floordry"), false, [&](std::shared_ptr t) { process_RC300Floordry(t); }); register_telegram_type(0x240, F("RC300Settings"), true, [&](std::shared_ptr t) { process_RC300Settings(t); }); - register_telegram_type(0xBF, F("RC300Error"), false, [&](std::shared_ptr t) { process_RC300Error(t); }); // JUNKERS/HT3 } else if (model == EMSdevice::EMS_DEVICE_FLAG_JUNKERS) { @@ -1315,21 +1314,6 @@ void Thermostat::process_RC300Floordry(std::shared_ptr telegram) changed_ |= telegram->read_value(floordrytemp_ , 1); } -// 0xBF RC300 Errormessage -void Thermostat::process_RC300Error(std::shared_ptr telegram) { - if (errorCode_.empty()) { - errorCode_.resize(10, '\0'); - } - char buf[4]; - buf[0] = telegram->message_data[5]; - buf[1] = telegram->message_data[6]; - buf[2] = telegram->message_data[7]; - buf[3] = 0; - changed_ |= telegram->read_value(errorNumber_, 8); - - snprintf_P(&errorCode_[0], errorCode_.capacity() + 1, PSTR("%s(%d)"), buf, errorNumber_); - -} // type 0x41 - data from the RC30 thermostat(0x10) - 14 bytes long void Thermostat::process_RC30Monitor(std::shared_ptr telegram) { std::shared_ptr hc = heating_circuit(telegram); diff --git a/src/devices/thermostat.h b/src/devices/thermostat.h index 6fc4cd497..2d7f34421 100644 --- a/src/devices/thermostat.h +++ b/src/devices/thermostat.h @@ -272,7 +272,6 @@ class Thermostat : public EMSdevice { void process_RC300WWtemp(std::shared_ptr telegram); void process_RC300OutdoorTemp(std::shared_ptr telegram); void process_RC300Settings(std::shared_ptr telegram); - void process_RC300Error(std::shared_ptr telegram); void process_RC300Floordry(std::shared_ptr telegram); void process_JunkersMonitor(std::shared_ptr telegram); void process_JunkersSet(std::shared_ptr telegram);