martin-ger / esp-open-lwip

ESP8266 lwIP library with NAT, SLIP, ENC28j60 Ethernet, and routing support
67 stars 25 forks source link

fix: It can't get time if set sntp server by calling sntp_setserver #7

Closed st0ff3r closed 5 years ago

st0ff3r commented 5 years ago

https://github.com/espressif/ESP8266_NONOS_SDK/commit/a7c9c12db0aad3421c61a5a42320d90543039484

st0ff3r commented 5 years ago

maybe better replace os_strlen(sntp_servers[sntp_current_server].name) with (sntp_servers[sntp_current_server].name[0] == 0)

martin-ger commented 5 years ago

Thanks for the pull request. Merged it! ;-)