Format changes.

This commit is contained in:
Fabian Schlenz 2019-08-13 06:16:08 +02:00
parent 651a4e8510
commit f91266b628
3 changed files with 7 additions and 8 deletions

View File

@ -59,7 +59,7 @@ void Controller::_check_rfid() {
_player->play_album(s_uid);
} else {
if (_no_rfid_card_count >= 1) {
INFO("No more RFID card.");
INFO("No more RFID card.\n");
_player->stop();
} else {
_no_rfid_card_count++;

View File

@ -18,8 +18,8 @@ void setup() {
Serial.begin(74880);
INFO("Starting.\n");
INFO("Initializing...\n");
DEBUG("Setting up SPI...\n");
SPI.begin();
@ -36,15 +36,14 @@ void setup() {
if (SD.begin(PIN_SD_CS)) {
INFO("SD card initialized.\n");
} else {
ERROR("Could not initialize SD card. Halting.\n");
while(1);
ERROR("Could not initialize SD card.\n");
}
DEBUG("Initializing Player and Controller...\n");
player = new Player(mcp);
controller = new Controller(player, mcp);
INFO("Player and controller initialized.\n");
DEBUG("Setting up WiFi and web server...\n");
http_server = new HTTPServer(player, controller);

View File

@ -525,7 +525,7 @@ bool Player::loop() {
_refill();
return true;
}
if (_state == idle && _stopped_at < millis() - VS1053_SLEEP_DELAY) {
_sleep();
}