wsprd: more rigorous quality checking of OSD-produced decodes. For now, discard all OSD decodes that map to an extended callsign.

This commit is contained in:
Steve Franke 2018-12-21 16:56:38 -06:00
parent a3f5c1a100
commit ddd9e8c3fb
1 changed files with 3 additions and 1 deletions

View File

@ -1312,7 +1312,9 @@ int main(int argc, char *argv[])
if( !unpackcall(n1,callsign) ) break;
callsign[12]=0;
ihash=nhash(callsign,strlen(callsign),(uint32_t)146);
if(strncmp(hashtab+ihash*13,callsign,13)==0) {
int ntype = (n2&127) - 64;
if(strncmp(hashtab+ihash*13,callsign,13)==0
&& (ntype >= 0) && (ntype <= 62) ) {
not_decoded=0;
osd_decode =1;
break;