We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c6b980 commit c15fbf3Copy full SHA for c15fbf3
libraries/Zigbee/src/ZigbeeEP.cpp
@@ -36,9 +36,8 @@ void ZigbeeEP::setVersion(uint8_t version) {
36
37
bool ZigbeeEP::setManufacturerAndModel(const char *name, const char *model) {
38
// 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];
+ char zb_name[ZB_MAX_NAME_LENGTH + 2];
+ char zb_model[ZB_MAX_NAME_LENGTH + 2];
42
43
// Convert manufacturer to ZCL string
44
size_t name_length = strlen(name);
0 commit comments