mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user