Signal strength always 0 on RSSI screen

Post Reply
OK1TE
Posts: 58
Joined: Tue Sep 29, 2020 7:58 am

Signal strength always 0 on RSSI screen

Post by OK1TE » Tue Jun 08, 2021 9:00 am

Hi, you might have already encountered that, but for sure... Spotted in R20210529

Steps to reproduce:
- go to RSSI screen
- signal strength is always 0 even in presence of strong carrier -> bug

VK7JS' fix:
in menuRSSIScreen.c

Code: Select all

@@ -79,7 +79,7 @@ menuStatus_t menuRSSIScreen(uiEvent_t *ev, bool isFirstRun)
 // Returns S-Unit 0..9..10(S9+10dB)..15(S9+60)
 static int32_t getSignalStrength(int dbm)
 {
-	if (dbm)
+	if (dbm < DBM_LEVELS[1])
 	{
 		return 0;
 	}

User avatar
F1RMB
Posts: 2517
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: Signal strength always 0 on RSSI screen

Post by F1RMB » Tue Jun 08, 2021 10:16 am

Hi,

Yes, spotted. Reverting a mistake I made (unwanted code deletion) fix the problem.
The final functionality code is even different.


Cheers.
---
Daniel

Post Reply