Skip to content

Commit

Permalink
fix low PI RDS callsign decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreRouma committed Jan 30, 2024
1 parent a9e59bd commit 4b68351
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions decoder_modules/radio/src/rds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,11 @@ namespace rds {
rest /= 26;
}

// Pad with As
while (restStr.size() < 3) {
restStr += 'A';
}

// Reorder chars
for (int i = restStr.size() - 1; i >= 0; i--) {
callsign += restStr[i];
Expand Down

0 comments on commit 4b68351

Please sign in to comment.