readonly check with device_id

This commit is contained in:
MichaelDvP
2022-12-22 14:25:20 +01:00
parent 9cbb810fe4
commit d300ed38ea
4 changed files with 6 additions and 6 deletions

View File

@@ -214,7 +214,7 @@ std::shared_ptr<Thermostat::HeatingCircuit> Thermostat::heating_circuit(const ui
return heating_circuit;
}
}
LOG_DEBUG("Heating circuit not fond on device 0x%02X", device_id());
return nullptr; // not found
}
@@ -3244,7 +3244,7 @@ bool Thermostat::set_temperature(const float temperature, const uint8_t mode, co
write_command(set_typeid, offset, (uint8_t)(temperature * (float)factor), validate_typeid);
return true;
}
LOG_DEBUG("temperature mode %d not found", mode);
return false;
}