Skip to content

Commit

Permalink
prefix/suffix always sent when specified
Browse files Browse the repository at this point in the history
  • Loading branch information
threeme3 committed Apr 2, 2013
1 parent ffe0bec commit 4b79c9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file modified wspr
Binary file not shown.
3 changes: 1 addition & 2 deletions wspr.c
Expand Up @@ -521,7 +521,6 @@ void strupr(char *str)
void wspr(char* call, char* l, char* dbm, unsigned char* symbols)
{
// pack prefix in nadd, call in n1, grid, dbm in n2
static int count = 0;
char* c, buf[16];
strncpy(buf, call, 16);
c=buf;
Expand Down Expand Up @@ -554,7 +553,7 @@ void wspr(char* call, char* l, char* dbm, unsigned char* symbols)
n1=27*n1+(n<2?26:c[i+2]-'A');
n1=27*n1+(n<3?26:c[i+3]-'A');

if(count++ % 2) nadd=0;
//if(rand() % 2) nadd=0;
if(!nadd){
strupr(l); //grid square Maidenhead locator (uppercase)
ng=180*(179-10*(l[0]-'A')-(l[2]-'0'))+10*(l[1]-'A')+(l[3]-'0');
Expand Down

0 comments on commit 4b79c9d

Please sign in to comment.