Fix error correction output in XDR-GTK RDS message

This commit is contained in:
Konrad Kosmatka
2024-01-03 18:42:16 +01:00
parent 6de4e7dcf1
commit 7845d5c609

View File

@@ -385,9 +385,9 @@ void readRds() {
XDRGTKRDS += String(((radio.rds.rdsD) >> 4) & 0xF, HEX) + String((radio.rds.rdsD) & 0xF, HEX);
uint8_t erroutput = 0;
erroutput |= (radio.rds.rdsErr >> 8) & B00110000 >> 4;
erroutput |= (radio.rds.rdsErr >> 8) & B00001100;
erroutput |= (radio.rds.rdsErr >> 8) & B00000011 << 4;
erroutput |= ((radio.rds.rdsErr >> 8) & B00110000) >> 4;
erroutput |= ((radio.rds.rdsErr >> 8) & B00001100);
erroutput |= ((radio.rds.rdsErr >> 8) & B00000011) << 4;
XDRGTKRDS += String((erroutput >> 4) & 0xF, HEX);
XDRGTKRDS += String(erroutput & 0xF, HEX);