Format changes.

This commit is contained in:
Fabian Schlenz 2019-08-13 06:16:08 +02:00
parent 25fa963752
commit 4d59c66354
3 changed files with 7 additions and 8 deletions

View File

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

View File

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

View File

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