You've already forked TEF6686_ESP32
Only scroll EON ticker when it doesn't fit.
This commit is contained in:
@@ -123,7 +123,7 @@ void ShowAdvancedRDS() {
|
|||||||
|
|
||||||
if (millis() - eonticker >= 5) {
|
if (millis() - eonticker >= 5) {
|
||||||
|
|
||||||
if (radio.rds.hasEON) {
|
if (radio.rds.hasEON && eonstring.length() > 30) {
|
||||||
if (eonstring.length() != eonstringlengthold) {
|
if (eonstring.length() != eonstringlengthold) {
|
||||||
eonstringWidth = eonstring.length() * charwidth;
|
eonstringWidth = eonstring.length() * charwidth;
|
||||||
eonstringlengthold = eonstring.length();
|
eonstringlengthold = eonstring.length();
|
||||||
@@ -144,7 +144,7 @@ void ShowAdvancedRDS() {
|
|||||||
RDSSprite.fillSprite(BackgroundColor);
|
RDSSprite.fillSprite(BackgroundColor);
|
||||||
if (RDSstatus) RDSSprite.setTextColor(RDSColor, RDSColorSmooth, false); else RDSSprite.setTextColor(RDSDropoutColor, RDSDropoutColorSmooth, false);
|
if (RDSstatus) RDSSprite.setTextColor(RDSColor, RDSColorSmooth, false); else RDSSprite.setTextColor(RDSDropoutColor, RDSDropoutColorSmooth, false);
|
||||||
RDSSprite.drawString(eonstring, xPos3, 2);
|
RDSSprite.drawString(eonstring, xPos3, 2);
|
||||||
if (radio.rds.hasEON && radio.eon_counter != 0) RDSSprite.drawString(eonstring, xPos3 + eonstringWidth, 2);
|
if (radio.rds.hasEON && eonstring.length() > 30) RDSSprite.drawString(eonstring, xPos3 + eonstringWidth, 2);
|
||||||
RDSSprite.pushSprite(35, 172);
|
RDSSprite.pushSprite(35, 172);
|
||||||
eonticker = millis();
|
eonticker = millis();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user