Skip to content

Commit 7253e83

Browse files
authored
Fixed Zigbee crash when removing ZbName (arendst#21449)
1 parent e7f69eb commit 7253e83

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ All notable changes to this project will be documented in this file.
2424
- Avoid connection errors when switching to safeboot to upload OTA firmware (#21428)
2525
- Berry Leds matrix alternate more and error about 'bri' attribute (#21431)
2626
- Wrong timeout in `WebQuery` and `webclient` since Core3
27+
- Zigbee crash when removing `ZbName`
2728

2829
### Removed
2930
- Support of old insecure fingerprint algorithm. Deprecated since v8.4.0 (#21417)

tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_2a_devices_impl.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ bool Z_Device::setEPName(uint8_t ep, const char * name) {
323323
}
324324

325325
void Z_Device::setStringAttribute(char*& attr, const char * str) {
326-
if (nullptr == str) { str = PSTR(""); } // nullptr is considered empty string
326+
if (nullptr == str) { str = ""; } // nullptr is considered empty string, don't use PROGMEM to avoid crash
327327
size_t str_len = strlen(str);
328328

329329
if ((nullptr == attr) && (0 == str_len)) { return; } // if both empty, don't do anything

0 commit comments

Comments
 (0)