We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71aa1b1 commit 5819e17Copy full SHA for 5819e17
subsys/net/lib/config/init_clock_sntp.c
@@ -18,6 +18,11 @@ static void sntp_resync_handler(struct k_work *work);
18
static K_WORK_DELAYABLE_DEFINE(sntp_resync_work_handle, sntp_resync_handler);
19
#endif
20
21
+BUILD_ASSERT(
22
+ IS_ENABLED(CONFIG_NET_CONFIG_SNTP_INIT_SERVER_USE_DHCPV4_OPTION) ||
23
+ (sizeof(CONFIG_NET_CONFIG_SNTP_INIT_SERVER) != 1),
24
+ "SNTP server has to be configured, unless DHCPv4 is used to set it");
25
+
26
static int sntp_init_helper(struct sntp_time *tm)
27
{
28
#ifdef CONFIG_NET_CONFIG_SNTP_INIT_SERVER_USE_DHCPV4_OPTION
0 commit comments