Disable radiotext to display processing on screenmute

This commit is contained in:
Sjef Verhoeven PE5PVB
2024-02-04 16:39:41 +01:00
parent 2612a2782e
commit 494cf974a2

View File

@@ -607,6 +607,7 @@ void showCT() {
} }
void showRadioText() { void showRadioText() {
if (!screenmute) {
if (radio.rds.hasRT && radio.rds.stationText.length() > 0) { if (radio.rds.hasRT && radio.rds.stationText.length() > 0) {
if (String(radio.rds.stationText + radio.rds.stationText32).length() != Radiotextlengthold) { if (String(radio.rds.stationText + radio.rds.stationText32).length() != Radiotextlengthold) {
RadiotextWidth = tft.textWidth(radio.rds.stationText + " " + radio.rds.stationText32) + TickerSpace; RadiotextWidth = tft.textWidth(radio.rds.stationText + " " + radio.rds.stationText32) + TickerSpace;
@@ -673,9 +674,11 @@ void showRadioText() {
} }
} }
} }
}
if (wifi) {
if (RTold != (radio.rds.stationText + " " + radio.rds.stationText32)) { if (RTold != (radio.rds.stationText + " " + radio.rds.stationText32)) {
xPos = 0;
if (wifi) {
Udp.beginPacket(remoteip, 9030); Udp.beginPacket(remoteip, 9030);
Udp.print("from=TEF_tuner " + String(stationlistid, DEC) + ";RT1="); Udp.print("from=TEF_tuner " + String(stationlistid, DEC) + ";RT1=");
char RThex[65]; char RThex[65];
@@ -688,10 +691,9 @@ void showRadioText() {
} }
Udp.endPacket(); Udp.endPacket();
} }
}
if (RTold != (radio.rds.stationText + " " + radio.rds.stationText32)) xPos = 0;
RTold = radio.rds.stationText + " " + radio.rds.stationText32; RTold = radio.rds.stationText + " " + radio.rds.stationText32;
} }
}
void ShowAFEON() { void ShowAFEON() {
if (!screenmute) { if (!screenmute) {