mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-21 22:17:53 +00:00
allow proper reading of RSSI from right antenna
This commit is contained in:
parent
e74aec9354
commit
2b1ec5232c
2
slip.c
2
slip.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user