mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
lwip: Add missing esp_sntp_enabled()
This commit is contained in:
parent
079611dd16
commit
35eeb04829
@ -236,3 +236,8 @@ void esp_sntp_servermode_dhcp(bool enable)
|
||||
}
|
||||
|
||||
#endif /* LWIP_DHCP_GET_NTP_SRV */
|
||||
|
||||
bool esp_sntp_enabled(void)
|
||||
{
|
||||
return sntp_enabled();
|
||||
}
|
||||
|
@ -213,6 +213,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user