Skip to content

Commit 2dd31c6

Browse files
committed
let's try a simpler build
* use _S build without extras * disable wifiGeneric again
1 parent e47b3ef commit 2dd31c6

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

platformio.ini

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,8 @@ extends = esp32_4MB_V4_M_base
18391839
;; platform_packages = ${esp32.platform_packagesTasmota}
18401840
board = esp32_16MB-poe ;; needed for ethernet boards (selects "esp32-poe" as variant)
18411841
board_build.partitions = ${esp32.extreme_partitions} ;; WLED extended for 16MB flash: 3.2MB firmware, 9 MB filesystem
1842-
build_unflags = ${esp32_4MB_V4_M_base.build_unflags}
1842+
;build_unflags = ${esp32_4MB_V4_M_base.build_unflags}
1843+
build_unflags = ${esp32_4MB_V4_S_base.build_unflags}
18431844
;; removing some usermods to keep it simple
18441845
-D USERMOD_DALLASTEMPERATURE
18451846
-D USERMOD_FOUR_LINE_DISPLAY
@@ -1858,7 +1859,9 @@ build_unflags = ${esp32_4MB_V4_M_base.build_unflags}
18581859
-DCORE_DEBUG_LEVEL=0
18591860
-DNDEBUG
18601861
;;${Speed_Flags.build_unflags} ;; to override -Os
1861-
build_flags = ${esp32_4MB_V4_M_base.build_flags}
1862+
;build_flags = ${esp32_4MB_V4_M_base.build_flags}
1863+
build_flags = ${esp32_4MB_V4_S_base.build_flags}
1864+
${common_mm.build_disable_sync_interfaces}
18621865
-D WLED_RELEASE_NAME=esp32_16MB_M_eth_debug ; This will be included in the firmware.bin filename
18631866
-D SERVERNAME='"WLED-QEMU"'
18641867
;;${Speed_Flags.build_flags_V4} ;; optimize for speed
@@ -1869,7 +1872,7 @@ build_flags = ${esp32_4MB_V4_M_base.build_flags}
18691872
-D WLED_USE_ETHERNET
18701873
-D WLED_DISABLE_ESPNOW ;; ESP-NOW requires wifi, may crash with ethernet only
18711874
-D WLED_DISABLE_OTA
1872-
-D CONFIG_ETH_USE_OPENETH=y ;; enable open_eth support
1875+
-D CONFIG_ETH_USE_OPENETH=y ;; enable open_eth support - not sure if this gets effective without re-building esp-idf ?
18731876
-D WLED_ETH_DEFAULT=2 ;; ESP32-POE board configuration (works with QEMU open_eth)
18741877
-D WLED_QEMU ;; Skip ethernet hardware initialization for QEMU compatibility
18751878
;; Static IP for QEMU testing - user-mode networking provides DHCP at 10.0.2.0/24
@@ -1883,7 +1886,8 @@ build_flags = ${esp32_4MB_V4_M_base.build_flags}
18831886
-D LEDPIN=4
18841887
-D BTNPIN=-1 -D RLYPIN=-1 -D IRPIN=-1 ;; disable all extra pins
18851888
-D SR_DMTYPE=254 -D AUDIOPIN=-1 ;; set AR into "received only" mode
1886-
lib_deps = ${esp32_4MB_V4_M_base.esp32_lib_deps}
1889+
;lib_deps = ${esp32_4MB_V4_M_base.esp32_lib_deps}
1890+
lib_deps = ${esp32_4MB_V4_S_base.esp32_lib_deps}
18871891
lib_ignore =
18881892
IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
18891893
OneWire ; used for USERMOD_FOUR_LINE_DISPLAY and USERMOD_DALLASTEMPERATURE

wled00/wled.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,12 +1148,13 @@ void WLED::initConnection()
11481148
#endif
11491149

11501150
#endif
1151-
1151+
#ifndef WLED_QEMU
11521152
if (staticIP[0] != 0 && staticGateway[0] != 0) {
11531153
WiFi.config(staticIP, staticGateway, staticSubnet, IPAddress(1, 1, 1, 1));
11541154
} else {
11551155
WiFi.config(IPAddress((uint32_t)0), IPAddress((uint32_t)0), IPAddress((uint32_t)0));
11561156
}
1157+
#endif
11571158

11581159
lastReconnectAttempt = millis();
11591160

0 commit comments

Comments
 (0)