Cap+ Call String Blink Fix; Minor Tweaks; #125

This commit is contained in:
lwvmobile
2023-05-30 14:52:44 -04:00
parent 96faff7711
commit afba84e584
5 changed files with 19 additions and 14 deletions

View File

@@ -1112,6 +1112,9 @@ int rtl_return_rms()
{
int sr = 0;
sr = rms(demod.lowpassed, demod.lp_len, 1);
// 'Fix' potential negative value overflow from the rms function -- Observed in Windows builds
sr = abs(sr);
if (sr > 9999) sr = 9999;
return (sr);
}