Fixed platformio compilation

Added more debug info in serial on boot
This commit is contained in:
cschwinne 2019-03-07 16:35:02 +01:00
parent 709ff7a701
commit 7274541722
5 changed files with 21 additions and 9 deletions

View File

@ -29,14 +29,14 @@ lib_deps_external =
NeoPixelBus@2.4.3 NeoPixelBus@2.4.3
ESPAsyncTCP@1.2.0 ESPAsyncTCP@1.2.0
AsyncTCP@1.0.3 AsyncTCP@1.0.3
EspAsyncWebServer@1.2.0 Esp Async WebServer@1.2.0
#ArduinoJson@5.13.5 #ArduinoJson@5.13.5
IRremoteESP8266@2.5.5 IRremoteESP8266@2.5.5
#Time@1.5 #Time@1.5
#Timezone@1.2.1 #Timezone@1.2.1
[common:esp8266] [common:esp8266]
platform = espressif8266@1.8.0 platform = espressif8266@2.0.4
build_flags = build_flags =
-D PIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH -D PIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH

View File

@ -16,7 +16,7 @@ const uint16_t PAGE_indexM_L = 91; //length of the binary payload
const char PAGE_indexM[] PROGMEM = R"=====( const char PAGE_indexM[] PROGMEM = R"=====(
Mobile UI is unsupported in this build. Go to /settings/ui and change UI mode to "Classic". Mobile UI is unsupported in this build. Go to /settings/ui and change UI mode to "Classic".
)====="; )=====";
#else WLED_DISABLE_MOBILE_UI #else
const uint16_t PAGE_indexM_L = 19142; //length of the binary payload const uint16_t PAGE_indexM_L = 19142; //length of the binary payload
const uint8_t PAGE_indexM[] PROGMEM = { const uint8_t PAGE_indexM[] PROGMEM = {

View File

@ -89,7 +89,7 @@
//version code in format yymmddb (b = daily build) //version code in format yymmddb (b = daily build)
#define VERSION 1903062 #define VERSION 1903071
char versionString[] = "0.8.4-dev"; char versionString[] = "0.8.4-dev";
@ -540,9 +540,9 @@ void loop() {
//DEBUG serial logging //DEBUG serial logging
#ifdef WLED_DEBUG #ifdef WLED_DEBUG
if (millis() - debugTime > 5000) if (millis() - debugTime > 9999)
{ {
DEBUG_PRINTLN("---MODULE DEBUG INFO---"); DEBUG_PRINTLN("---DEBUG INFO---");
DEBUG_PRINT("Runtime: "); DEBUG_PRINTLN(millis()); DEBUG_PRINT("Runtime: "); DEBUG_PRINTLN(millis());
DEBUG_PRINT("Unix time: "); DEBUG_PRINTLN(now()); DEBUG_PRINT("Unix time: "); DEBUG_PRINTLN(now());
DEBUG_PRINT("Free heap: "); DEBUG_PRINTLN(ESP.getFreeHeap()); DEBUG_PRINT("Free heap: "); DEBUG_PRINTLN(ESP.getFreeHeap());

View File

@ -14,9 +14,22 @@ void wledInit()
#endif #endif
Serial.begin(115200); Serial.begin(115200);
Serial.setTimeout(50); Serial.setTimeout(50);
DEBUG_PRINTLN();
DEBUG_PRINT("---WLED "); DEBUG_PRINT(versionString); DEBUG_PRINT(" "); DEBUG_PRINT(VERSION); DEBUG_PRINTLN(" INIT---");
#ifdef ARDUINO_ARCH_ESP32
DEBUG_PRINT("esp32 "); DEBUG_PRINTLN(ESP.getSdkVersion());
#else
DEBUG_PRINT("esp8266 "); DEBUG_PRINTLN(ESP.getCoreVersion());
#endif
int heapPreAlloc = ESP.getFreeHeap();
DEBUG_PRINT("heap ");
DEBUG_PRINTLN(ESP.getFreeHeap());
strip.init(EEPROM.read(372),ledCount,EEPROM.read(2204)); //init LEDs quickly strip.init(EEPROM.read(372),ledCount,EEPROM.read(2204)); //init LEDs quickly
DEBUG_PRINT("LEDs inited. heap usage ~");
DEBUG_PRINTLN(heapPreAlloc - ESP.getFreeHeap());
#ifdef USEFS #ifdef USEFS
SPIFFS.begin(); SPIFFS.begin();
#endif #endif

View File

@ -200,8 +200,7 @@ void onHueData(void* arg, AsyncClient* client, void *data, size_t len)
} }
hueReceived = true; hueReceived = true;
} }
#else #else
void handleHue(){} void handleHue(){}
bool reconnectHue(){} void reconnectHue(){}
#endif #endif