Page 1 of 1

Signal strength always 0 on RSSI screen

Posted: Tue Jun 08, 2021 9:00 am
by OK1TE
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;
 	}

Re: Signal strength always 0 on RSSI screen

Posted: Tue Jun 08, 2021 10:16 am
by F1RMB
Hi,

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


Cheers.
---
Daniel