Zigbee fix crash when bad frame is received

This commit is contained in:
Stephan Hadinger 2021-03-02 15:04:59 +01:00
parent 2057912276
commit 2cef4cdcf4
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ void ZigbeeInputLoop(void) {
}
} else {
// the buffer timed-out, print error and discard
AddLog_P(LOG_LEVEL_INFO, PSTR(D_JSON_ZIGBEE_EZSP_RECEIVED ": time-out, discarding %s, %_B"), zigbee_buffer);
AddLog_P(LOG_LEVEL_INFO, PSTR(D_JSON_ZIGBEE_EZSP_RECEIVED ": time-out, discarding %_B"), zigbee_buffer);
}
zigbee_buffer->setLen(0); // empty buffer
escape = false;