mirror of https://github.com/arendst/Tasmota.git
fix mp3 error behaviour
This commit is contained in:
parent
29df10d837
commit
3b31f22383
|
@ -568,7 +568,8 @@ void Play_mp3(const char *path) {
|
|||
I2S_Task = false;
|
||||
}
|
||||
|
||||
file = new AudioFileSourceFS(*ufsp,path);
|
||||
file = new AudioFileSourceFS(*ufsp, path);
|
||||
|
||||
id3 = new AudioFileSourceID3(file);
|
||||
|
||||
if (mp3ram) {
|
||||
|
@ -584,11 +585,11 @@ void Play_mp3(const char *path) {
|
|||
while (mp3->isRunning()) {
|
||||
if (!mp3->loop()) {
|
||||
mp3->stop();
|
||||
mp3_delete();
|
||||
break;
|
||||
}
|
||||
OsWatchLoop();
|
||||
}
|
||||
mp3_delete();
|
||||
}
|
||||
|
||||
#endif // USE_SCRIPT
|
||||
|
|
Loading…
Reference in New Issue