From ab86da4639576badeaa7adab6a5639ecd94e74eb Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 15 Feb 2021 13:54:26 +0900 Subject: [PATCH] netutils/ntpclient/Kconfig: Add NETUTILS_NTPCLIENT_STAY_ON It's used in the code but missing in Kconfig. I guess the PR [1] forgot to add this. Make it "y" by default because it seems like the original behavior before the PR [1]. I have no strong opinions on the default either ways. [1] https://github.com/apache/incubator-nuttx-apps/pull/570 --- netutils/ntpclient/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netutils/ntpclient/Kconfig b/netutils/ntpclient/Kconfig index 0b234d824..1f0a33c57 100644 --- a/netutils/ntpclient/Kconfig +++ b/netutils/ntpclient/Kconfig @@ -45,9 +45,14 @@ config NETUTILS_NTPCLIENT_SERVERPRIO int "NTP client daemon priority" default 100 +config NETUTILS_NTPCLIENT_STAY_ON + bool "Make NTP client keep polling" + default y + config NETUTILS_NTPCLIENT_POLLDELAYSEC int "NTP client poll interval (seconds)" default 60 + depends on NETUTILS_NTPCLIENT_STAY_ON config NETUTILS_NTPCLIENT_RETRIES int "NTP client retry seconds to wait for network up"