kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/lwip_sntp_enabled_missing' into 'master'
lw-ip: Add missing esp_sntp_enabled() See merge request espressif/esp-idf!22480pull/10922/head
commit
4bef5f9056
|
@ -255,3 +255,8 @@ void esp_sntp_servermode_dhcp(bool enable)
|
|||
}
|
||||
|
||||
#endif /* LWIP_DHCP_GET_NTP_SRV */
|
||||
|
||||
bool esp_sntp_enabled(void)
|
||||
{
|
||||
return sntp_enabled();
|
||||
}
|
||||
|
|
|
@ -212,6 +212,12 @@ const char *esp_sntp_getservername(u8_t idx);
|
|||
*/
|
||||
const ip_addr_t* esp_sntp_getserver(u8_t idx);
|
||||
|
||||
/**
|
||||
* @brief Checks if sntp is enabled
|
||||
* @return true if sntp module is enabled
|
||||
*/
|
||||
bool esp_sntp_enabled(void);
|
||||
|
||||
#if LWIP_DHCP_GET_NTP_SRV
|
||||
/**
|
||||
* @brief Enable acquiring SNTP server from DHCP
|
||||
|
|
Ładowanie…
Reference in New Issue