Skip to content

Commit bcca1f1

Browse files
committed
Merge branch 'fix-device-add' into 'main'
components/esp-matter: code size optimization when adding device types See merge request app-frameworks/esp-matter!1011
2 parents 6aa71da + b4651a1 commit bcca1f1

File tree

2 files changed

+65
-319
lines changed

2 files changed

+65
-319
lines changed

components/esp_matter/esp_matter_core.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1876,7 +1876,8 @@ esp_err_t add_device_type(endpoint_t *endpoint, uint32_t device_type_id, uint8_t
18761876
{
18771877
VerifyOrReturnError(endpoint, ESP_ERR_INVALID_ARG, ESP_LOGE(TAG, "Endpoint cannot be NULL"));
18781878
_endpoint_t *current_endpoint = (_endpoint_t *)endpoint;
1879-
VerifyOrReturnError(current_endpoint->device_type_count < ESP_MATTER_MAX_DEVICE_TYPE_COUNT, ESP_FAIL, ESP_LOGE(TAG, "Could not add a new device type to the endpoint"));
1879+
VerifyOrReturnError(current_endpoint->device_type_count < ESP_MATTER_MAX_DEVICE_TYPE_COUNT, ESP_FAIL,
1880+
ESP_LOGE(TAG, "Could not add a new device-type:%" PRIu32 " to the endpoint", device_type_id));
18801881
current_endpoint->device_type_ids[current_endpoint->device_type_count] = device_type_id;
18811882
current_endpoint->device_type_versions[current_endpoint->device_type_count] = device_type_version;
18821883
current_endpoint->device_type_count++;

0 commit comments

Comments
 (0)