Skip to content

Commit

Permalink
esp_netif_get_default_netif isn't available before IDF v5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
phoddie committed Nov 5, 2023
1 parent 5d35958 commit b85ce8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/network/socket/lwip/modSocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void xs_socket(xsMachine *the)
int ttl = 0;
char addr[64];

#if ESP32
#if ESP32 && (ESP_IDF_VERSION_MAJOR >= 5) && (ESP_IDF_VERSION_MINOR >= 1)
if (!esp_netif_get_default_netif())
xsUnknownError("no network");
#endif
Expand Down

0 comments on commit b85ce8e

Please sign in to comment.