From 26028e766d9592cdac3ff6d9b97388c86e0f2813 Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Wed, 22 May 2024 20:17:12 +0200 Subject: [PATCH] Add seperation in LPS ticker --- src/rds.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/rds.cpp b/src/rds.cpp index b625903..f1b32ef 100644 --- a/src/rds.cpp +++ b/src/rds.cpp @@ -675,8 +675,8 @@ void showPS() { tftReplace(0, PSold, radio.rds.stationName, 160, 201, BWAutoColor, BWAutoColorSmooth, BackgroundColor, 16); } else { if (radio.rds.hasLongPS) { - PSLongWidth = (String(radio.rds.stationNameLong).length() * (charwidth + 4)); - PSLonglengthold = String(radio.rds.stationNameLong).length(); + PSLongWidth = (String(radio.rds.stationNameLong + " ").length() * (charwidth + 4)); + PSLonglengthold = String(radio.rds.stationNameLong + " ").length(); if (millis() - pslongticker >= (advancedRDS ? 5 : 15)) { if (xPos5 == 0) { @@ -694,13 +694,13 @@ void showPS() { if (advancedRDS) { PSSprite.fillSprite(BackgroundColor); if (RDSstatus) PSSprite.setTextColor(RDSColor, RDSColorSmooth, false); else PSSprite.setTextColor(RDSDropoutColor, RDSDropoutColorSmooth, false); - PSSprite.drawString(radio.rds.stationNameLong, xPos5, 0); - PSSprite.drawString(radio.rds.stationNameLong, xPos5 + PSLongWidth, 0); + PSSprite.drawString(radio.rds.stationNameLong + " " , xPos5, 0); + PSSprite.drawString(radio.rds.stationNameLong + " " , xPos5 + PSLongWidth, 0); } else { PSSprite.fillSprite(BackgroundColor); if (RDSstatus) PSSprite.setTextColor(RDSColor, RDSColorSmooth, false); else PSSprite.setTextColor(RDSDropoutColor, RDSDropoutColorSmooth, false); - PSSprite.drawString(radio.rds.stationNameLong, xPos5, 0); - PSSprite.drawString(radio.rds.stationNameLong, xPos5 + PSLongWidth, 0); + PSSprite.drawString(radio.rds.stationNameLong + " " , xPos5, 0); + PSSprite.drawString(radio.rds.stationNameLong + " " , xPos5 + PSLongWidth, 0); } pslongticker = millis(); }