No more need to manual reboot radio on tuner detection

This commit is contained in:
Sjef Verhoeven PE5PVB
2024-02-11 19:27:18 +01:00
parent fe893b26c5
commit 1ab089d11d
4 changed files with 49 additions and 42 deletions
+6 -4
View File
@@ -3466,12 +3466,14 @@ void SetTunerPatch() {
tft.fillScreen(BackgroundColor);
analogWrite(CONTRASTPIN, ContrastSet * 2 + 27);
if (TEF == 0) tftPrint(0, myLanguage[language][35], 150, 78, ActiveColor, ActiveColorSmooth, 28); else tftPrint(0, myLanguage[language][36] + String(TEF), 150, 78, ActiveColor, ActiveColorSmooth, 28);
tftPrint(0, myLanguage[language][37], 150, 108, ActiveColor, ActiveColorSmooth, 28);
if (TEF == 0) {
tftPrint(0, myLanguage[language][35], 150, 78, ActiveColor, ActiveColorSmooth, 28);
for (;;);
}
EEPROM.writeByte(EE_BYTE_TEF, TEF);
EEPROM.commit();
while (true);
for (;;);
Tuner_Reset();
ESP.restart();
}
}