Skip to content

Commit bd097e1

Browse files
committed
Merge branch 'components/add_missing_flags_of_attributes' into 'main'
[components] Add missing writeable flag for some attributes See merge request app-frameworks/esp-matter!1190
2 parents 1c7271b + ad8beca commit bd097e1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

components/esp_matter/esp_matter_attribute.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3190,7 +3190,7 @@ attribute_t *create_spin_speed_current(cluster_t *cluster, nullable<uint8_t> val
31903190

31913191
attribute_t *create_number_of_rinses(cluster_t *cluster, uint8_t value)
31923192
{
3193-
return esp_matter::attribute::create(cluster, LaundryWasherControls::Attributes::NumberOfRinses::Id, ATTRIBUTE_FLAG_NONE,
3193+
return esp_matter::attribute::create(cluster, LaundryWasherControls::Attributes::NumberOfRinses::Id, ATTRIBUTE_FLAG_WRITABLE,
31943194
esp_matter_enum8(value));
31953195
}
31963196

@@ -3937,8 +3937,8 @@ namespace boolean_state_configuration {
39373937
namespace attribute {
39383938
attribute_t *create_current_sensitivity_level(cluster_t *cluster, uint8_t value)
39393939
{
3940-
return esp_matter::attribute::create(cluster, BooleanStateConfiguration::Attributes::CurrentSensitivityLevel::Id, ATTRIBUTE_FLAG_NONVOLATILE,
3941-
esp_matter_uint8(value));
3940+
return esp_matter::attribute::create(cluster, BooleanStateConfiguration::Attributes::CurrentSensitivityLevel::Id,
3941+
ATTRIBUTE_FLAG_NONVOLATILE | ATTRIBUTE_FLAG_WRITABLE, esp_matter_uint8(value));
39423942
}
39433943

39443944
attribute_t *create_supported_sensitivity_levels(cluster_t *cluster, const uint8_t value)
@@ -4844,12 +4844,12 @@ attribute_t *create_maximum_discharge_current(cluster_t *cluster, int64_t value)
48444844

48454845
attribute_t *create_user_maximum_charge_current(cluster_t *cluster, int64_t value)
48464846
{
4847-
return esp_matter::attribute::create(cluster, EnergyEvse::Attributes::UserMaximumChargeCurrent::Id, ATTRIBUTE_FLAG_NONVOLATILE, esp_matter_int64(value));
4847+
return esp_matter::attribute::create(cluster, EnergyEvse::Attributes::UserMaximumChargeCurrent::Id, ATTRIBUTE_FLAG_NONVOLATILE | ATTRIBUTE_FLAG_WRITABLE, esp_matter_int64(value));
48484848
}
48494849

48504850
attribute_t *create_randomization_delay_window(cluster_t *cluster, uint32_t value)
48514851
{
4852-
return esp_matter::attribute::create(cluster, EnergyEvse::Attributes::RandomizationDelayWindow::Id, ATTRIBUTE_FLAG_NONVOLATILE, esp_matter_uint32(value));
4852+
return esp_matter::attribute::create(cluster, EnergyEvse::Attributes::RandomizationDelayWindow::Id, ATTRIBUTE_FLAG_NONVOLATILE | ATTRIBUTE_FLAG_WRITABLE, esp_matter_uint32(value));
48534853
}
48544854

48554855
attribute_t *create_next_charge_start_time(cluster_t *cluster, nullable<uint32_t> value)
@@ -4874,7 +4874,7 @@ attribute_t *create_next_charge_target_soc(cluster_t *cluster, nullable<uint8_t>
48744874

48754875
attribute_t *create_approximate_ev_efficiency(cluster_t *cluster, nullable<uint16_t> value)
48764876
{
4877-
return esp_matter::attribute::create(cluster, EnergyEvse::Attributes::ApproximateEVEfficiency::Id, ATTRIBUTE_FLAG_NULLABLE | ATTRIBUTE_FLAG_NONVOLATILE, esp_matter_nullable_uint16(value));
4877+
return esp_matter::attribute::create(cluster, EnergyEvse::Attributes::ApproximateEVEfficiency::Id, ATTRIBUTE_FLAG_NULLABLE | ATTRIBUTE_FLAG_NONVOLATILE | ATTRIBUTE_FLAG_WRITABLE, esp_matter_nullable_uint16(value));
48784878
}
48794879

48804880
attribute_t *create_state_of_charge(cluster_t *cluster, nullable<uint8_t> value)

0 commit comments

Comments
 (0)