Skip to content

Commit dd327e5

Browse files
committed
Fix IDF 4.3.x compile
1 parent 912f762 commit dd327e5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

wled00/network.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
// Declare internal Arduino library function to work around the fact that WiFi.setHostname() does not propagate the
88
// hostname to the network interface if it's been previously used. The underlying ESP-IDF layer supports this just
99
// fine; it's an oversight in the Arduino layer that we can work around by calling the internal function directly.
10+
#if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 0)) && (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(4, 5, 0))
1011
esp_err_t set_esp_interface_hostname(esp_interface_t interface, const char * hostname);
12+
#else
13+
#define set_esp_interface_hostname(a,b)
14+
#endif
1115
#endif
1216

1317
#ifndef WLED_DISABLE_ESPNOW

0 commit comments

Comments
 (0)