Zigbee fix display Devices allowed to join when zero device

This commit is contained in:
Stephan Hadinger 2021-01-03 16:36:34 +01:00
parent c33d5efd72
commit 61c518d813

View File

@ -1914,7 +1914,7 @@ void ZigbeeShow(bool json)
} else { } else {
UnishoxStrings msg(ZB_WEB); UnishoxStrings msg(ZB_WEB);
uint32_t zigbee_num = zigbee_devices.devicesSize(); uint32_t zigbee_num = zigbee_devices.devicesSize();
if (!zigbee_num) { return; } if (zigbee_num > 0) {
if (zigbee_num > 255) { zigbee_num = 255; } if (zigbee_num > 255) { zigbee_num = 255; }
WSContentSend_P(msg[ZB_WEB_CSS], WebColor(COL_TEXT)); WSContentSend_P(msg[ZB_WEB_CSS], WebColor(COL_TEXT));
@ -2078,6 +2078,7 @@ void ZigbeeShow(bool json)
} }
WSContentSend_P(msg[ZB_WEB_LINE_END]); // Terminate current multi column table and open new table WSContentSend_P(msg[ZB_WEB_LINE_END]); // Terminate current multi column table and open new table
}
if (zigbee.permit_end_time) { if (zigbee.permit_end_time) {
// PermitJoin in progress // PermitJoin in progress