From e93fd7d0f66b82b87995571f9f71c3bd728c7d3c Mon Sep 17 00:00:00 2001 From: Torsten Stauder Date: Sun, 1 Nov 2020 23:25:55 +0100 Subject: [PATCH] Introduced SD_NOT_MANDATORY_ENABLE for debugging --- platformio.ini | 1 - src/main.cpp | 10 ++++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/platformio.ini b/platformio.ini index d665438..bb897b8 100644 --- a/platformio.ini +++ b/platformio.ini @@ -29,7 +29,6 @@ lib_deps = ESP Async WebServer https://github.com/me-no-dev/AsyncTCP https://github.com/bblanchon/ArduinoJson.git -; https://github.com/Yveaux/AC101.git ; https://github.com/pschatzmann/ESP32-A2DP.git ; Don't forget to run this script if you changed the html-files provided in any way diff --git a/src/main.cpp b/src/main.cpp index b1aba5d..7bb5181 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,10 +1,12 @@ // Define modules to compile: #define MQTT_ENABLE // Make sure to configure mqtt-server and (optionally) username+pwd -#define FTP_ENABLE +#define FTP_ENABLE // Enables FTP-server #define NEOPIXEL_ENABLE // Don't forget configuration of NUM_LEDS if enabled #define NEOPIXEL_REVERSE_ROTATION // Some Neopixels are adressed/soldered counter-clockwise. This can be configured here. #define LANGUAGE 1 // 1 = deutsch; 2 = english //#define SINGLE_SPI_ENABLE // If only one SPI-instance should be used instead of two + +//#define SD_NOT_MANDATORY_ENABLE // Only for debugging-purposes: Tonuino will also start without mounted SD-card anyway (will only try once to mount it) //#define BLUETOOTH_ENABLE // Doesn't work currently (so don't enable) as there's not enough DRAM available #include @@ -1494,8 +1496,6 @@ void playAudio(void *parameter) { // Instructs RFID-scanner to scan for new RFID-tags void rfidScanner(void *parameter) { static MFRC522 mfrc522(RFID_CS, RST_PIN); - //pinMode(RFID_CS, OUTPUT); - //digitalWrite(RFID_CS, HIGH); #ifndef SINGLE_SPI_ENABLE SPI.begin(); #endif @@ -3081,7 +3081,9 @@ void setup() { #endif loggerNl((char *) FPSTR(unableToMountSd), LOGLEVEL_ERROR); delay(500); - break; + #ifdef SD_NOT_MANDATORY_ENABLE + break; + #endif } #ifdef BLUETOOTH_ENABLE