Merge pull request #481 from kkonradpl/xdr-gtk-rds-fix2

Fix error correction output in XDR-GTK RDS message
This commit is contained in:
Sjef Verhoeven PE5PVB
2024-01-03 19:08:11 +01:00
committed by GitHub
+3 -3
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);