@@ -263,7 +263,7 @@ void ZigbeeEP::zbReadBasicCluster(const esp_zb_zcl_attribute_t *attribute) { |
|
|
263 |
263 |
} |
264 |
264 |
if (attribute->id == ESP_ZB_ZCL_ATTR_BASIC_MODEL_IDENTIFIER_ID && attribute->data.type == ESP_ZB_ZCL_ATTR_TYPE_CHAR_STRING && attribute->data.value) { |
265 |
265 |
zbstring_t *zbstr = (zbstring_t *)attribute->data.value; |
266 |
|
-char *_read_model = (char *)malloc(zbstr->len + 1); |
|
266 |
+ _read_model = (char *)malloc(zbstr->len + 1); |
267 |
267 |
if (_read_model == NULL) { |
268 |
268 |
log_e("Failed to allocate memory for model data"); |
269 |
269 |
xSemaphoreGive(lock); |