From ac03f78b745628dadaf1e27b79ea0dd4232fc022 Mon Sep 17 00:00:00 2001 From: Adam Wisher <37659188+mrwish7@users.noreply.github.com> Date: Tue, 22 Apr 2025 12:52:30 +0100 Subject: [PATCH] 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 --- server/datahandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/datahandler.js b/server/datahandler.js index 9e320ab..107b71b 100644 --- a/server/datahandler.js +++ b/server/datahandler.js @@ -354,7 +354,7 @@ function handleData(wss, receivedData, rdsWss) { // error correction, but this is a good substitute. errorsNew = (legacyRdsPiBuffer.length - 4) << 6; } else { - pi = '0000'; + pi = '----'; errorsNew = (0x03 << 6); }