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

@ -36,7 +36,7 @@ lib_deps_external =
#Timezone@1.2.1
[common:esp8266]
platform = espressif8266@1.8.0
platform = espressif8266@2.0.4
build_flags =
-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"=====(
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 uint8_t PAGE_indexM[] PROGMEM = {

View File

@ -89,7 +89,7 @@
//version code in format yymmddb (b = daily build)
#define VERSION 1903062
#define VERSION 1903071
char versionString[] = "0.8.4-dev";
@ -540,9 +540,9 @@ void loop() {
//DEBUG serial logging
#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("Unix time: "); DEBUG_PRINTLN(now());
DEBUG_PRINT("Free heap: "); DEBUG_PRINTLN(ESP.getFreeHeap());

View File

@ -14,9 +14,22 @@ void wledInit()
#endif
Serial.begin(115200);
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
DEBUG_PRINT("LEDs inited. heap usage ~");
DEBUG_PRINTLN(heapPreAlloc - ESP.getFreeHeap());
#ifdef USEFS
SPIFFS.begin();
#endif

View File

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