Edzelf / ESP32Radio-V2

New version of the well known ESP32 Radio. Now optional I2S output!
Apache License 2.0
197 stars 49 forks source link

No screen after restart #87

Open MadeGray opened 1 year ago

MadeGray commented 1 year ago

Love the project thank you very much - I've built a couple of these for workshop and home and work very well.. Some streams can crash the system at times but hey - its all good.

Did have a problem on certain ESP Dev boards - After a .restart() (called after a crash or from the config menu) the TFT screen would only display the startup and not the main details screen. Traced the problem to the timers not restating after an esp.restart - This is likely an issue with the particular clone boards im using dollartek ones are fine.

After a software restart the timers wouldnt restart clean so the refresh screen was never called (or checks for encoder etc.)

Resolved by adding:

timerDetachInterrupt(timer); timerEnd(timer);

before the .restart in code and resolved issue - May help someone else.

Also a small change i made was within the streamtitle update - A few stations (like capital Radio) send a streamtitle update 2 or 3 times a second so caused the display to flicker on the title and track. Added a simple compare to previous stored to resolve this. so no update if the same.

Has anyone had any success with the BBC M3u8 streams?

Many thanks again John

Edzelf commented 1 year ago

Thanks, I will correct it in the next release.