Skip to content

Commit f333f86

Browse files
committed
Updated platformio.ini to reference esp32_eth env
change default ethernet type to none add macro option to change default eth board at compile time
1 parent a09f64a commit f333f86

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

platformio.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# ------------------------------------------------------------------------------
1010

1111
# Travis CI binaries (comment this out with a ';' when building for your own board)
12-
; default_envs = travis_esp8266, travis_esp32
12+
default_envs = travis_esp8266, travis_esp32
1313

1414
# Release binaries
1515
; default_envs = nodemcuv2, esp01_1m_full, esp32dev, custom_WS2801, custom_APA102, custom_LEDPIN_16, custom_LEDPIN_4, custom_LEDPIN_3, custom32_LEDPIN_16, custom32_APA102
@@ -30,7 +30,7 @@
3030
; default_envs = d1_mini_5CH_Shojo_PCB
3131
; default_envs = wemos_shield_esp32
3232
; default_envs = m5atom
33-
default_envs = esp32_poe
33+
; default_envs = esp32_eth
3434

3535
src_dir = ./wled00
3636
data_dir = ./wled00/data
@@ -279,12 +279,12 @@ lib_ignore =
279279
ESPAsyncTCP
280280
ESPAsyncUDP
281281

282-
[env:esp32_poe]
282+
[env:esp32_eth]
283283
board = esp32-poe
284284
285285
upload_speed = 921600
286286
build_unflags = ${common.build_unflags}
287-
build_flags = ${common.build_flags_esp32} -D RLYPIN=-1 -D WLED_USE_ETHERNET -D BTNPIN=-1
287+
build_flags = ${common.build_flags_esp32} -D RLYPIN=-1 -D WLED_USE_ETHERNET -D BTNPIN=-1
288288
lib_ignore =
289289
ESPAsyncTCP
290290
ESPAsyncUDP

wled00/wled.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,11 @@ WLED_GLOBAL IPAddress staticGateway _INIT_N((( 0, 0, 0, 0))); // gateway (r
205205
WLED_GLOBAL IPAddress staticSubnet _INIT_N(((255, 255, 255, 0))); // most common subnet in home networks
206206
WLED_GLOBAL bool noWifiSleep _INIT(false); // disabling modem sleep modes will increase heat output and power usage, but may help with connection issues
207207
#ifdef WLED_USE_ETHERNET
208-
WLED_GLOBAL int ethernetType _INIT(WLED_ETH_ESP32_POE); // ethernet board type
208+
#ifdef WLED_ETH_DEFAULT // use none for ethernet board type if default not defined
209+
WLED_GLOBAL int ethernetType _INIT(WLED_ETH_DEFAULT); // ethernet board type
210+
#else
211+
WLED_GLOBAL int ethernetType _INIT(WLED_ETH_NONE); //default ethernet board type if specified
212+
#endif
209213
#endif
210214

211215
// LED CONFIG

0 commit comments

Comments
 (0)