alt rfid driver

This commit is contained in:
2021-10-27 22:07:48 +02:00
parent 2022eec0f1
commit f70b64b793
6 changed files with 113 additions and 76 deletions

View File

@@ -79,22 +79,22 @@ void initAudio()
void handleAudio()
{
if (hallIsIdle())
{
if (mp3->isRunning())
{
Serial.println("Audio: stop playback");
mp3->stop();
audio_start = false;
}
}
else
{
if(!audio_start)
{
playSong(audio_current_Song);
audio_start = true;
}
// if (hallIsIdle())
// {
// if (mp3->isRunning())
// {
// Serial.println("Audio: stop playback");
// mp3->stop();
// audio_start = false;
// }
// }
// else
// {
// if(!audio_start)
// {
// playSong(audio_current_Song);
// audio_start = true;
// }
if (mp3->isRunning())
{
@@ -104,5 +104,5 @@ void handleAudio()
playSong(audio_current_Song);
}
}
}
//}
}