nomPower is always editable

This commit is contained in:
MichaelDvP
2023-09-06 12:46:38 +02:00
parent 0ba5d8e2bd
commit 04e43d5d41

View File

@@ -968,7 +968,8 @@ void Boiler::process_UBAFactory(std::shared_ptr<const Telegram> telegram) {
if (!telegram->read_value(nomPower, 4)) { if (!telegram->read_value(nomPower, 4)) {
return; return;
} }
if (nomPower > 0) { // Update nominal Power only if not already set in nvs and we have a valid value
if (nomPower > 0 && nomPower_ == 0) {
has_update(nomPower_, nomPower); has_update(nomPower_, nomPower);
} }
toggle_fetch(telegram->type_id, false); // only read once toggle_fetch(telegram->type_id, false); // only read once