Format changes.
This commit is contained in:
parent
25fa963752
commit
4d59c66354
@ -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++;
|
||||
|
11
src/main.cpp
11
src/main.cpp
@ -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);
|
||||
|
||||
|
@ -525,7 +525,7 @@ bool Player::loop() {
|
||||
_refill();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
if (_state == idle && _stopped_at < millis() - VS1053_SLEEP_DELAY) {
|
||||
_sleep();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user