alt rfid driver
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
//}
|
||||
}
|
||||
Reference in New Issue
Block a user