From 193bd6c36f9bd70782f8eed605068f195bb9a047 Mon Sep 17 00:00:00 2001 From: Junior Martinez Date: Mon, 12 Dec 2022 14:20:08 -0500 Subject: [PATCH] Fix if conditiong/wrong variable name used --- .../OpenThread/GenericThreadStackManagerImpl_OpenThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/OpenThread/GenericThreadStackManagerImpl_OpenThread.cpp b/src/platform/OpenThread/GenericThreadStackManagerImpl_OpenThread.cpp index 6e59b2e8d0df60..6489f967a7fa50 100644 --- a/src/platform/OpenThread/GenericThreadStackManagerImpl_OpenThread.cpp +++ b/src/platform/OpenThread/GenericThreadStackManagerImpl_OpenThread.cpp @@ -1162,7 +1162,7 @@ CHIP_ERROR GenericThreadStackManagerImpl_OpenThread::_WriteThreadNetw averageRssi.SetNonNull(neighInfo.mAverageRssi); } - if (neighInfo.mAverageRssi == OT_RADIO_RSSI_INVALID) + if (neighInfo.mLastRssi == OT_RADIO_RSSI_INVALID) { lastRssi.SetNull(); }