mirror of
https://github.com/espressif/esp-lwip.git
synced 2026-09-03 15:50:06 +00:00
Document that sntp_setservername doesn't copy the string
I was expecting the string to be duplicate, doing a Google search shows others did as well.
This commit is contained in:
committed by
David Čermák
parent
ae7edc2a93
commit
54acdb598e
@@ -867,7 +867,8 @@ sntp_getserver(u8_t idx)
|
||||
* Initialize one of the NTP servers by name
|
||||
*
|
||||
* @param idx the index of the NTP server to set must be < SNTP_MAX_SERVERS
|
||||
* @param server DNS name of the NTP server to set, to be resolved at contact time
|
||||
* @param server DNS name of the NTP server to set, to be resolved at contact
|
||||
* time. Note sntp stores the pointer, it doesn't copy the string.
|
||||
*/
|
||||
void
|
||||
sntp_setservername(u8_t idx, const char *server)
|
||||
|
||||
Reference in New Issue
Block a user