Skip to content

Commit 4b68351

Browse files
fix low PI RDS callsign decoding
1 parent a9e59bd commit 4b68351

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

decoder_modules/radio/src/rds.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,11 @@ namespace rds {
408408
rest /= 26;
409409
}
410410

411+
// Pad with As
412+
while (restStr.size() < 3) {
413+
restStr += 'A';
414+
}
415+
411416
// Reorder chars
412417
for (int i = restStr.size() - 1; i >= 0; i--) {
413418
callsign += restStr[i];

0 commit comments

Comments
 (0)