Skip to content

Commit

Permalink
refactor: fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ivica3730k authored Dec 19, 2024
1 parent 8c9d0e1 commit d8e328c
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/JTEncode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -997,20 +997,20 @@ void JTEncode::wspr_bit_packing(uint8_t * c)
strncpy(prefix, callsign, slash_pos);
strncpy(base_call, callsign + slash_pos + 1, 7);

if (prefix[1] == ' ' || prefix[1] == 0)
{
prefix[3] = 0;
prefix[2] = prefix[0];
prefix[1] = ' ';
prefix[0] = ' ';

} else if (prefix[2] == ' ' || prefix[2] == 0)
{
prefix[3] = 0;
prefix[2] = prefix[1];
prefix[1] = prefix[0];
prefix[0] = ' ';
}
if (prefix[1] == ' ' || prefix[1] == 0)
{
prefix[3] = 0;
prefix[2] = prefix[0];
prefix[1] = ' ';
prefix[0] = ' ';
} else if (prefix[2] == ' ' || prefix[2] == 0)
{
prefix[3] = 0;
prefix[2] = prefix[1];
prefix[1] = prefix[0];
prefix[0] = ' ';
}

for(uint8_t i = 0; i < 6; i++)
{
Expand Down Expand Up @@ -1651,4 +1651,4 @@ void JTEncode::pad_callsign(char * call)
// {
// // return 1;
// }
}
}

0 comments on commit d8e328c

Please sign in to comment.