Add seperation in LPS ticker
This commit is contained in:
+6
-6
@@ -675,8 +675,8 @@ void showPS() {
|
|||||||
tftReplace(0, PSold, radio.rds.stationName, 160, 201, BWAutoColor, BWAutoColorSmooth, BackgroundColor, 16);
|
tftReplace(0, PSold, radio.rds.stationName, 160, 201, BWAutoColor, BWAutoColorSmooth, BackgroundColor, 16);
|
||||||
} else {
|
} else {
|
||||||
if (radio.rds.hasLongPS) {
|
if (radio.rds.hasLongPS) {
|
||||||
PSLongWidth = (String(radio.rds.stationNameLong).length() * (charwidth + 4));
|
PSLongWidth = (String(radio.rds.stationNameLong + " ").length() * (charwidth + 4));
|
||||||
PSLonglengthold = String(radio.rds.stationNameLong).length();
|
PSLonglengthold = String(radio.rds.stationNameLong + " ").length();
|
||||||
|
|
||||||
if (millis() - pslongticker >= (advancedRDS ? 5 : 15)) {
|
if (millis() - pslongticker >= (advancedRDS ? 5 : 15)) {
|
||||||
if (xPos5 == 0) {
|
if (xPos5 == 0) {
|
||||||
@@ -694,13 +694,13 @@ void showPS() {
|
|||||||
if (advancedRDS) {
|
if (advancedRDS) {
|
||||||
PSSprite.fillSprite(BackgroundColor);
|
PSSprite.fillSprite(BackgroundColor);
|
||||||
if (RDSstatus) PSSprite.setTextColor(RDSColor, RDSColorSmooth, false); else PSSprite.setTextColor(RDSDropoutColor, RDSDropoutColorSmooth, false);
|
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, 0);
|
||||||
PSSprite.drawString(radio.rds.stationNameLong, xPos5 + PSLongWidth, 0);
|
PSSprite.drawString(radio.rds.stationNameLong + " " , xPos5 + PSLongWidth, 0);
|
||||||
} else {
|
} else {
|
||||||
PSSprite.fillSprite(BackgroundColor);
|
PSSprite.fillSprite(BackgroundColor);
|
||||||
if (RDSstatus) PSSprite.setTextColor(RDSColor, RDSColorSmooth, false); else PSSprite.setTextColor(RDSDropoutColor, RDSDropoutColorSmooth, false);
|
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, 0);
|
||||||
PSSprite.drawString(radio.rds.stationNameLong, xPos5 + PSLongWidth, 0);
|
PSSprite.drawString(radio.rds.stationNameLong + " " , xPos5 + PSLongWidth, 0);
|
||||||
}
|
}
|
||||||
pslongticker = millis();
|
pslongticker = millis();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user