Skip to content

Commit c15fbf3

Browse files
authored
fix(zigbee_ep): using stack only for adding attribute
1 parent 6c6b980 commit c15fbf3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libraries/Zigbee/src/ZigbeeEP.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ void ZigbeeEP::setVersion(uint8_t version) {
3636

3737
bool ZigbeeEP::setManufacturerAndModel(const char *name, const char *model) {
3838
// Allocate a new array of size length + 2 (1 for the length, 1 for null terminator)
39-
// This memory space can't be deleted or overwritten, therefore using static
40-
static char zb_name[ZB_MAX_NAME_LENGTH + 2];
41-
static char zb_model[ZB_MAX_NAME_LENGTH + 2];
39+
char zb_name[ZB_MAX_NAME_LENGTH + 2];
40+
char zb_model[ZB_MAX_NAME_LENGTH + 2];
4241

4342
// Convert manufacturer to ZCL string
4443
size_t name_length = strlen(name);

0 commit comments

Comments
 (0)