Skip to content

Commit d09c3ee

Browse files
authored
fix(zigbee): missing char * data() for logging
1 parent 0540823 commit d09c3ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/Zigbee/src/ZigbeeEP.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ void ZigbeeEP::zbReadBasicCluster(const esp_zb_zcl_attribute_t *attribute) {
249249
std::vector<char> zb_manufacturer(zbstr->len + 1);
250250
memcpy(zb_manufacturer.data(), zbstr->data, zbstr->len);
251251
zb_manufacturer[zbstr->len] = '\0';
252-
log_i("Peer Manufacturer is \"%s\"", zb_manufacturer);
252+
log_i("Peer Manufacturer is \"%s\"", zb_manufacturer.data());
253253
free(_read_manufacturer); // Free any previously allocated memory
254254
_read_manufacturer = strdup(zb_manufacturer.data()); // Duplicate the information for persistent storage
255255
xSemaphoreGive(lock);
@@ -259,7 +259,7 @@ void ZigbeeEP::zbReadBasicCluster(const esp_zb_zcl_attribute_t *attribute) {
259259
std::vector<char> zb_model(zbstr->len + 1);
260260
memcpy(zb_model.data(), zbstr->data, zbstr->len);
261261
zb_model[zbstr->len] = '\0';
262-
log_i("Peer Model is \"%s\"", zb_model);
262+
log_i("Peer Model is \"%s\"", zb_model.data());
263263
free(_read_model); // Free any previously allocated memory
264264
_read_model = strdup(zb_model.data()); // Duplicate the information for persistent storage
265265
xSemaphoreGive(lock);

0 commit comments

Comments
 (0)