mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 19:26:37 +00:00
fix mp3 error behaviour
This commit is contained in:
parent
29df10d837
commit
3b31f22383
@ -569,6 +569,7 @@ void Play_mp3(const char *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…
x
Reference in New Issue
Block a user