Add seperation in LPS ticker

This commit is contained in:
Sjef Verhoeven PE5PVB
2024-05-22 20:17:12 +02:00
parent c59a731ee8
commit 26028e766d

View File

@@ -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();
}