From ac076b9e52caa391847e18144ad900208871b2c9 Mon Sep 17 00:00:00 2001 From: Nitek Date: Tue, 23 Jan 2018 19:35:20 +0100 Subject: [PATCH] Cleanup startPlayingFile --- Adafruit_VS1053.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Adafruit_VS1053.cpp b/Adafruit_VS1053.cpp index 4681354..7d17525 100644 --- a/Adafruit_VS1053.cpp +++ b/Adafruit_VS1053.cpp @@ -190,18 +190,6 @@ boolean Adafruit_VS1053_FilePlayer::startPlayingFile(const char *trackname) { sciWrite(VS1053_REG_DECODETIME, 0x00); playingMusic = true; - - // wait till its ready for data - while (! readyForData() ) { -#if defined(ESP8266) - yield(); -#endif - } - - // fill it up! - while (playingMusic && readyForData()) { - feedBuffer(); - } // ok going forward, we can use the IRQ interrupts();