mirror of
https://github.com/Crocmagnon/buzzer.git
synced 2024-12-25 15:31:53 +01:00
Fix repeated play leading to scrambled sound
This commit is contained in:
parent
707a099e63
commit
47267d9217
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ void play()
|
|||
{
|
||||
String path = "/" + selectedFile;
|
||||
Serial.println("Playing file: " + path);
|
||||
audio.stopSong();
|
||||
audio.connecttoFS(SD, path.c_str());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue