Improved ticker speed in Advanced RDS view
This commit is contained in:
+4
-4
@@ -82,7 +82,7 @@ void ShowAdvancedRDS() {
|
|||||||
hasafold = radio.rds.hasAF;
|
hasafold = radio.rds.hasAF;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (millis() - afticker >= 15) {
|
if (millis() - afticker >= 5) {
|
||||||
if (radio.rds.hasAF) {
|
if (radio.rds.hasAF) {
|
||||||
if (afstring.length() != afstringlengthold) {
|
if (afstring.length() != afstringlengthold) {
|
||||||
afstringWidth = afstring.length() * charwidth;
|
afstringWidth = afstring.length() * charwidth;
|
||||||
@@ -119,7 +119,7 @@ void ShowAdvancedRDS() {
|
|||||||
haseonold = radio.rds.hasEON;
|
haseonold = radio.rds.hasEON;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (millis() - eonticker >= 15) {
|
if (millis() - eonticker >= 5) {
|
||||||
|
|
||||||
if (radio.rds.hasEON) {
|
if (radio.rds.hasEON) {
|
||||||
if (eonstring.length() != eonstringlengthold) {
|
if (eonstring.length() != eonstringlengthold) {
|
||||||
@@ -157,7 +157,7 @@ void ShowAdvancedRDS() {
|
|||||||
hasrtplusold = radio.rds.hasRDSplus;
|
hasrtplusold = radio.rds.hasRDSplus;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (millis() - rtplusticker >= 15) {
|
if (millis() - rtplusticker >= 5) {
|
||||||
if (radio.rds.hasRDSplus) {
|
if (radio.rds.hasRDSplus) {
|
||||||
if (rtplusstring.length() != rtplusstringlengthold) {
|
if (rtplusstring.length() != rtplusstringlengthold) {
|
||||||
rtplusstringWidth = rtplusstring.length() * charwidth;
|
rtplusstringWidth = rtplusstring.length() * charwidth;
|
||||||
@@ -753,7 +753,7 @@ void showRadioText() {
|
|||||||
RadiotextSprite.drawString(radio.rds.stationText + " " + radio.rds.stationText32, xPos, 2);
|
RadiotextSprite.drawString(radio.rds.stationText + " " + radio.rds.stationText32, xPos, 2);
|
||||||
RadiotextSprite.pushSprite(36, 220);
|
RadiotextSprite.pushSprite(36, 220);
|
||||||
} else {
|
} else {
|
||||||
if (millis() - rtticker >= 15) {
|
if (millis() - rtticker >= (advancedRDS ? 5 : 15)) {
|
||||||
if (xPos == 0) {
|
if (xPos == 0) {
|
||||||
if (millis() - rttickerhold >= 1000) {
|
if (millis() - rttickerhold >= 1000) {
|
||||||
xPos --;
|
xPos --;
|
||||||
|
|||||||
Reference in New Issue
Block a user