Skip to content

Commit f29b27e

Browse files
authored
Update esp32-hal-time.c
Add a warning about side-effects of using this function
1 parent 099b432 commit f29b27e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/esp32/esp32-hal-time.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ void configTime(long gmtOffset_sec, int daylightOffset_sec, const char* server1,
6363
/*
6464
* configTzTime
6565
* sntp setup using TZ environment variable
66+
* NOTE: this function cannot be reliably called more than once, see https://github.com/espressif/esp-idf/issues/3046
6667
* */
6768
void configTzTime(const char* tz, const char* server1, const char* server2, const char* server3)
6869
{

0 commit comments

Comments
 (0)