From 8c988ac55a7dc1bd61ea9a6433bb4f0910a8c0ab Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 21 Aug 2020 23:35:29 +0200 Subject: global-functions: $TimeIsSync: warn on missing time source --- global-functions | 3 +++ 1 file changed, 3 insertions(+) diff --git a/global-functions b/global-functions index 7f3e51b..4014e76 100644 --- a/global-functions +++ b/global-functions @@ -763,6 +763,8 @@ # check if system time is sync :set TimeIsSync do={ + :global LogPrintExit; + :if ([ / system ntp client get enabled ] = true) do={ :do { :if ([ / system ntp client get status ] = "synchronized") do={ @@ -783,6 +785,7 @@ :return false; } + $LogPrintExit warning ("No time source configured!") false; :return false; } -- cgit v1.2.3-54-g00ecf