samples: posix: gettimeofday: add sntp resync option

add sntp resync option to sample.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
Fin Maaß 2024-09-10 10:09:14 +02:00 committed by Carles Cufí
parent b32a44aa7e
commit 6e975952f8
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ CONFIG_POSIX_API=y
CONFIG_SNTP=y
CONFIG_NET_CONFIG_CLOCK_SNTP_INIT=y
CONFIG_NET_CONFIG_SNTP_INIT_SERVER="time.nist.gov"
CONFIG_NET_CONFIG_SNTP_INIT_RESYNC=y
# Networking config
CONFIG_NETWORKING=y