mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Merge pull request #9309 from TonyBlit/fix_sat_list
Clear sat list to avoid showing old data
This commit is contained in:
parent
9011c4e722
commit
d99c30badf
1 changed files with 10 additions and 4 deletions
|
@ -1124,10 +1124,16 @@ static bool UBLOX_parse_gps(void)
|
|||
if (GPS_numCh > 16)
|
||||
GPS_numCh = 16;
|
||||
for (i = 0; i < GPS_numCh; i++) {
|
||||
GPS_svinfo_chn[i]= _buffer.svinfo.channel[i].chn;
|
||||
GPS_svinfo_svid[i]= _buffer.svinfo.channel[i].svid;
|
||||
GPS_svinfo_quality[i]=_buffer.svinfo.channel[i].quality;
|
||||
GPS_svinfo_cno[i]= _buffer.svinfo.channel[i].cno;
|
||||
GPS_svinfo_chn[i] = _buffer.svinfo.channel[i].chn;
|
||||
GPS_svinfo_svid[i] = _buffer.svinfo.channel[i].svid;
|
||||
GPS_svinfo_quality[i] =_buffer.svinfo.channel[i].quality;
|
||||
GPS_svinfo_cno[i] = _buffer.svinfo.channel[i].cno;
|
||||
}
|
||||
for (i = GPS_numCh; i < 16; i++) {
|
||||
GPS_svinfo_chn[i] = 0;
|
||||
GPS_svinfo_svid[i] = 0;
|
||||
GPS_svinfo_quality[i] = 0;
|
||||
GPS_svinfo_cno[i] = 0;
|
||||
}
|
||||
GPS_svInfoReceivedCount++;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue