allow proper reading of RSSI from right antenna

This commit is contained in:
gardners 2013-08-26 17:23:15 +09:30 committed by Jeremy Lakeman
parent e74aec9354
commit 2b1ec5232c

2
slip.c
View File

@ -162,7 +162,7 @@ int parse_rfd900_rssi(char *s)
&lrssi,&rrssi,&lnoise,&rnoise,&rxpackets, &temp)==6)
{
int lmargin=(lrssi-lnoise)/1.9;
int rmargin=(lrssi-lnoise)/1.9;
int rmargin=(rrssi-rnoise)/1.9;
int maxmargin=lmargin; if (rmargin>maxmargin) maxmargin=rmargin;
last_radio_rssi=maxmargin;
last_radio_temperature=temp;