mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 19:26:37 +00:00
Fix crash in ZbRestore
This commit is contained in:
parent
469f0813d4
commit
5eb2434808
@ -57,7 +57,7 @@ JsonVariant &startsWithCaseInsensitive(const JsonObject &json, const char *needl
|
|||||||
return *(JsonVariant*)nullptr;
|
return *(JsonVariant*)nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
String needle_s(needle);
|
String needle_s((const __FlashStringHelper *)needle);
|
||||||
needle_s.toLowerCase();
|
needle_s.toLowerCase();
|
||||||
|
|
||||||
for (auto kv : json) {
|
for (auto kv : json) {
|
||||||
|
@ -681,7 +681,7 @@ ZBM(ZBS_SET_CONCENTRATOR, EZSP_setConcentrator, 0x00 /*high*/, 0x00 /*false*/, 0
|
|||||||
ZBM(ZBR_SET_CONCENTRATOR, EZSP_setConcentrator, 0x00 /*high*/, 0x00 /*ok*/) // 100000
|
ZBM(ZBR_SET_CONCENTRATOR, EZSP_setConcentrator, 0x00 /*high*/, 0x00 /*ok*/) // 100000
|
||||||
|
|
||||||
// setInitialSecurityState
|
// setInitialSecurityState
|
||||||
#define EZ_SECURITY_MODE EMBER_TRUST_CENTER_GLOBAL_LINK_KEY | EMBER_PRECONFIGURED_NETWORK_KEY_MODE | EMBER_HAVE_NETWORK_KEY | EMBER_HAVE_PRECONFIGURED_KEY | EMBER_NO_FRAME_COUNTER_RESET
|
#define EZ_SECURITY_MODE EMBER_TRUST_CENTER_GLOBAL_LINK_KEY | EMBER_PRECONFIGURED_NETWORK_KEY_MODE | EMBER_HAVE_NETWORK_KEY | EMBER_HAVE_PRECONFIGURED_KEY
|
||||||
ZBR(ZBS_SET_SECURITY, EZSP_setInitialSecurityState, 0x00 /*high*/,
|
ZBR(ZBS_SET_SECURITY, EZSP_setInitialSecurityState, 0x00 /*high*/,
|
||||||
Z_B0(EZ_SECURITY_MODE), Z_B1(EZ_SECURITY_MODE),
|
Z_B0(EZ_SECURITY_MODE), Z_B1(EZ_SECURITY_MODE),
|
||||||
// preConfiguredKey
|
// preConfiguredKey
|
||||||
|
@ -598,6 +598,7 @@ int32_t ZigbeeProcessInputEZSP(class SBuffer &buf) {
|
|||||||
case EZSP_messageSentHandler: // 3F00
|
case EZSP_messageSentHandler: // 3F00
|
||||||
case EZSP_setConfigurationValue: // 5300
|
case EZSP_setConfigurationValue: // 5300
|
||||||
case EZSP_setPolicy: // 5500
|
case EZSP_setPolicy: // 5500
|
||||||
|
case 0x0059: // 5900 - supposedly removed by still happening
|
||||||
case EZSP_setMulticastTableEntry: // 6400
|
case EZSP_setMulticastTableEntry: // 6400
|
||||||
case EZSP_setInitialSecurityState: // 6800
|
case EZSP_setInitialSecurityState: // 6800
|
||||||
case EZSP_getCurrentSecurityState: // 6900
|
case EZSP_getCurrentSecurityState: // 6900
|
||||||
|
Loading…
x
Reference in New Issue
Block a user