Change zigbee LQ to LQI

This commit is contained in:
Theo Arends 2020-06-27 22:20:32 +02:00
parent a05e939be9
commit a212b3ca7d
1 changed files with 2 additions and 2 deletions

View File

@ -1083,7 +1083,7 @@ Z_DevRecord_t Z_DevRecord[MAX_ZBRECORDS];
uint8_t Z_DevIndex = 0;
void ZdSetLinkQuality(uint16_t shortaddr, uint8_t linkquality) {
if (Z_DevIndex < MAX_ZBRECORDS) {
if (Z_DevIndex < MAX_ZBRECORDS -1) {
uint32_t i;
for (i = 0; i < Z_DevIndex; i++) {
if (shortaddr == Z_DevRecord[i].shortaddr) {
@ -1133,7 +1133,7 @@ void ZigbeeShow(bool json)
snprintf_P(spart2, sizeof(spart2), PSTR("%d"), lq);
}
WSContentSend_PD(PSTR("{s}%s{m}LQ %s{e}"), name, spart2);
WSContentSend_PD(PSTR("{s}%s{m}LQI %s{e}"), name, spart2);
}
#endif
}