1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

Don't output PI 0000 as filler on rds websocket

Output four dashes instead of 0000 as a PI placeholder, for correct RDS Spy compatibility
This commit is contained in:
Adam Wisher
2025-04-22 12:52:30 +01:00
parent 79e4205612
commit ac03f78b74

View File

@@ -354,7 +354,7 @@ function handleData(wss, receivedData, rdsWss) {
// error correction, but this is a good substitute. // error correction, but this is a good substitute.
errorsNew = (legacyRdsPiBuffer.length - 4) << 6; errorsNew = (legacyRdsPiBuffer.length - 4) << 6;
} else { } else {
pi = '0000'; pi = '----';
errorsNew = (0x03 << 6); errorsNew = (0x03 << 6);
} }