mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
Merge branch 'fix-bounds' into 'release/v1.2'
[v1.2] esp-matter/components: Fix bounds of SystemMode attribute of Thermostat See merge request app-frameworks/esp-matter!865
This commit is contained in:
+1
-1
@@ -65,7 +65,6 @@ variables:
|
||||
# fetch submodules
|
||||
- export PYTHONPATH=${IDF_PATH}/tools/ci/python_packages/:${PYTHONPATH}
|
||||
- pip install python-gitlab
|
||||
- pip install --upgrade idf-component-manager
|
||||
- python tools/ci/ci_fetch_submodule.py
|
||||
|
||||
.setup_ot_br: &setup_ot_br
|
||||
@@ -140,6 +139,7 @@ variables:
|
||||
- *get_build_caches
|
||||
- *chip_submodule_update
|
||||
- *setup_idf
|
||||
- pip install 'idf-component-manager~=1.4.0'
|
||||
- *setup_matter
|
||||
- cd ${ESP_MATTER_PATH}
|
||||
- mkdir -p ${REPOS_PATH}
|
||||
|
||||
@@ -1499,8 +1499,8 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags, uint32_
|
||||
if (config) {
|
||||
global::attribute::create_cluster_revision(cluster, config->cluster_revision);
|
||||
attribute::create_local_temperature(cluster, config->local_temperature);
|
||||
attribute::create_control_sequence_of_operation(cluster, config->control_sequence_of_operation, 0x0, 0x5);
|
||||
attribute::create_system_mode(cluster, config->system_mode, 0x0, 0x7);
|
||||
attribute::create_control_sequence_of_operation(cluster, config->control_sequence_of_operation, chip::to_underlying(Thermostat::ThermostatControlSequence::kCoolingOnly), chip::to_underlying(Thermostat::ThermostatControlSequence::kCoolingAndHeatingWithReheat));
|
||||
attribute::create_system_mode(cluster, config->system_mode, chip::to_underlying(Thermostat::ThermostatSystemMode::kOff), chip::to_underlying(Thermostat::ThermostatSystemMode::kSleep));
|
||||
} else {
|
||||
ESP_LOGE(TAG, "Config is NULL. Cannot add some attributes.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user