Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2c44063

Browse files
authoredMar 28, 2025··
fix(zigbee_ep): forgotten var name change
1 parent 7ad636f commit 2c44063

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎libraries/Zigbee/src/ZigbeeEP.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ void ZigbeeEP::zbReadBasicCluster(const esp_zb_zcl_attribute_t *attribute) {
261261
return;
262262
}
263263
memcpy(zb_manufacturer, zbstr->data, zbstr->len);
264-
string[zbstr->len] = '\0';
264+
zb_manufacturer[zbstr->len] = '\0';
265265
log_i("Peer Manufacturer is \"%s\"", zb_manufacturer);
266266
_read_manufacturer = zb_manufacturer;
267267
xSemaphoreGive(lock);
@@ -275,7 +275,7 @@ void ZigbeeEP::zbReadBasicCluster(const esp_zb_zcl_attribute_t *attribute) {
275275
return;
276276
}
277277
memcpy(zb_model, zbstr->data, zbstr->len);
278-
string[zbstr->len] = '\0';
278+
zb_model[zbstr->len] = '\0';
279279
log_i("Peer Model is \"%s\"", zb_model);
280280
_read_model = zb_model;
281281
xSemaphoreGive(lock);

0 commit comments

Comments
 (0)
Please sign in to comment.