File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ void ZigbeeEP::zbReadBasicCluster(const esp_zb_zcl_attribute_t *attribute) {
261
261
return ;
262
262
}
263
263
memcpy (zb_manufacturer, zbstr->data , zbstr->len );
264
- string [zbstr->len ] = ' \0 ' ;
264
+ zb_manufacturer [zbstr->len ] = ' \0 ' ;
265
265
log_i (" Peer Manufacturer is \" %s\" " , zb_manufacturer);
266
266
_read_manufacturer = zb_manufacturer;
267
267
xSemaphoreGive (lock);
@@ -275,7 +275,7 @@ void ZigbeeEP::zbReadBasicCluster(const esp_zb_zcl_attribute_t *attribute) {
275
275
return ;
276
276
}
277
277
memcpy (zb_model, zbstr->data , zbstr->len );
278
- string [zbstr->len ] = ' \0 ' ;
278
+ zb_model [zbstr->len ] = ' \0 ' ;
279
279
log_i (" Peer Model is \" %s\" " , zb_model);
280
280
_read_model = zb_model;
281
281
xSemaphoreGive (lock);
You can’t perform that action at this time.
0 commit comments