mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
Bugfix: Add check for attribute::set_val
This commit is contained in:
@@ -1035,6 +1035,9 @@ EmberAfStatus emberAfExternalAttributeWriteCallback(EndpointId endpoint_id, Clus
|
||||
}
|
||||
|
||||
/* Update val */
|
||||
if (val.type == ESP_MATTER_VAL_TYPE_INVALID) {
|
||||
return EMBER_ZCL_STATUS_FAILURE;
|
||||
}
|
||||
attribute::set_val(attribute, &val);
|
||||
return EMBER_ZCL_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user