Skip to content

Commit

Permalink
refactor: fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ivica3730k committed Dec 19, 2024
1 parent 49ec3a3 commit 8c9d0e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/JTEncode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -997,13 +997,15 @@ 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) {
if (prefix[1] == ' ' || prefix[1] == 0)
{
prefix[3] = 0;
prefix[2] = prefix[0];
prefix[1] = ' ';
prefix[0] = ' ';

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

0 comments on commit 8c9d0e1

Please sign in to comment.