diff --git a/code/espurna/espurna.ino b/code/espurna/espurna.ino index 60c7c444..30122dea 100644 --- a/code/espurna/espurna.ino +++ b/code/espurna/espurna.ino @@ -122,7 +122,8 @@ void welcome() { DEBUG_MSG_P(PSTR("ChipID: %06X\n"), ESP.getChipId()); DEBUG_MSG_P(PSTR("CPU frequency: %d MHz\n"), ESP.getCpuFreqMHz()); DEBUG_MSG_P(PSTR("Last reset reason: %s\n"), (char *) ESP.getResetReason().c_str()); - DEBUG_MSG_P(PSTR("Memory size: %d bytes\n"), ESP.getFlashChipSize()); + DEBUG_MSG_P(PSTR("Memory size (SDK): %d bytes\n"), ESP.getFlashChipSize()); + DEBUG_MSG_P(PSTR("Memory size (CHIP): %d bytes\n"), ESP.getFlashChipRealSize()); DEBUG_MSG_P(PSTR("Free heap: %d bytes\n"), ESP.getFreeHeap()); DEBUG_MSG_P(PSTR("Firmware size: %d bytes\n"), ESP.getSketchSize()); DEBUG_MSG_P(PSTR("Free firmware space: %d bytes\n"), ESP.getFreeSketchSpace()); diff --git a/code/espurna/relay.ino b/code/espurna/relay.ino index c13f9d4d..f5b8ee33 100644 --- a/code/espurna/relay.ino +++ b/code/espurna/relay.ino @@ -445,9 +445,9 @@ void relaySetup() { _relays.push_back((relay_t) {0, 0}); _relays.push_back((relay_t) {0, 0}); - #elif defined(AI_LIGHT) + #elif defined(AI_LIGHT) | defined(LED_CONTROLLER) - // One dummy relay for the AI Thinker Light + // One dummy relay for the AI Thinker Light & Magic Home Led Controller _relays.push_back((relay_t) {0, 0}); #else diff --git a/code/platformio.ini b/code/platformio.ini index 5b6ca7ca..af7c18d0 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -427,20 +427,20 @@ upload_flags = --auth=fibonacci --port 8266 [env:led-controller-debug] platform = espressif8266 framework = arduino -board = esp12e +board = esp01_1m lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} extra_script = pio_hooks.py -build_flags = ${common.build_flags} -DLED_CONTROLLER +build_flags = ${common.build_flags_1m128} -DLED_CONTROLLER [env:led-controller-debug-ota] platform = espressif8266 framework = arduino -board = esp12e +board = esp01_1m lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} extra_script = pio_hooks.py -build_flags = ${common.build_flags} -DLED_CONTROLLER +build_flags = ${common.build_flags_1m128} -DLED_CONTROLLER upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266