Skip to content

Commit 21c53cd

Browse files
committed
Merge branch 'fix/issue_1551' into 'main'
esp_matter/data_model: Add better error logging in case of attribute type mismatch in set_val See merge request app-frameworks/esp-matter!1275
2 parents 58a1199 + c5c997f commit 21c53cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp_matter/data_model/esp_matter_data_model.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ esp_err_t set_val(attribute_t *attribute, esp_matter_attr_val_t *val, bool call_
633633
ESP_RETURN_ON_FALSE(!(current_attribute->flags & ATTRIBUTE_FLAG_MANAGED_INTERNALLY), ESP_ERR_NOT_SUPPORTED, TAG,
634634
"Attribute is not managed by esp matter data model");
635635
VerifyOrReturnError(current_attribute->val.type == val->type, ESP_ERR_INVALID_ARG,
636-
ESP_LOGE(TAG, "Different value type"));
636+
ESP_LOGE(TAG, "Different value type : Expected Type : %u Attempted Type: %u", current_attribute->val.type, val->type));
637637

638638
if ((current_attribute->flags & ATTRIBUTE_FLAG_MIN_MAX) && current_attribute->bounds) {
639639
if (compare_attr_val_with_bounds(*val, *current_attribute->bounds) != 0) {

0 commit comments

Comments
 (0)