You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/02/15 09:54:22 UTC
[incubator-nuttx-apps] branch master updated:
netutils/ntpclient/Kconfig: Add NETUTILS_NTPCLIENT_STAY_ON
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new ab86da4 netutils/ntpclient/Kconfig: Add NETUTILS_NTPCLIENT_STAY_ON
ab86da4 is described below
commit ab86da4639576badeaa7adab6a5639ecd94e74eb
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Mon Feb 15 13:54:26 2021 +0900
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 0b234d8..1f0a33c 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"