Fix: Correct MinSetpointDeadBand bounds to use int8_t

MinSetpointDeadBand is defined as an int8_t, but the bounds were incorrectly created using int16_t. Updated bounds to use int8_t with the correct range (0–127).
This commit is contained in:
Szilveszter Szebeni
2026-02-15 15:51:55 +01:00
parent c8db90878b
commit 3a721c2541
@@ -475,8 +475,8 @@ void add_bounds_cb(cluster_t *cluster)
break;
}
case Thermostat::Attributes::MinSetpointDeadBand::Id: {
int16_t min = 0, max = 1270;
esp_matter::attribute::add_bounds(current_attribute, esp_matter_int16(min), esp_matter_int16(max));
int8_t min = 0, max = 127;
esp_matter::attribute::add_bounds(current_attribute, esp_matter_int8(min), esp_matter_int8(max));
break;
}
case Thermostat::Attributes::ControlSequenceOfOperation::Id: {