formatting and text changes

This commit is contained in:
proddy
2021-11-10 12:26:59 +01:00
parent 5f2a9b093d
commit e347ac5742
4 changed files with 7 additions and 11 deletions

View File

@@ -26,7 +26,6 @@ uuid::log::Logger Generic::logger_{F_(generic), uuid::log::Facility::CONSOLE};
Generic::Generic(uint8_t device_type, uint8_t device_id, uint8_t product_id, const std::string & version, const std::string & name, uint8_t flags, uint8_t brand)
: EMSdevice(device_type, device_id, product_id, version, name, flags, brand) {
// RF-Sensor 0x40 sending temperature in telegram 0x435, see https://github.com/emsesp/EMS-ESP32/issues/103
if (device_id == 0x40) {
register_telegram_type(0x435, F("RFSensorMessage"), false, MAKE_PF_CB(process_RFSensorMessage));

View File

@@ -659,11 +659,11 @@ void Thermostat::process_RC10Monitor(std::shared_ptr<const Telegram> telegram) {
uint8_t mode = hc->mode * 2;
has_update(telegram->read_value(mode, 0)); // 1: nofrost, 2: night, 4: day
hc->mode = mode / 2; // for enum 0, 1, 2
hc->mode = mode / 2; // for enum 0, 1, 2
has_update(telegram->read_value(hc->setpoint_roomTemp, 1, 1)); // is * 2, force as single byte
has_update(telegram->read_value(hc->curr_roomTemp, 2)); // is * 10
has_update(telegram->read_value(hc->reduceminutes, 5));
hc->hamode = hc->mode == 2 ? 1 : 0; // set special HA mode
hc->hamode = hc->mode == 2 ? 1 : 0; // set special HA mode
}
// type 0xB0 - for reading the mode from the RC10 thermostat (0x17)
@@ -680,7 +680,7 @@ void Thermostat::process_RC10Set(std::shared_ptr<const Telegram> telegram) {
has_update(telegram->read_value(hc->nighttemp, 3));
has_update(telegram->read_value(hc->daytemp, 4));
has_update(telegram->read_value(hc->reducehours, 5));
has_update(telegram->read_value(ibaBuildingType_ ,6));
has_update(telegram->read_value(ibaBuildingType_, 6));
}
// 0xA8 - for reading the mode from the RC20 thermostat (0x17)