From 9ced99c3768598d6b89d782dbcfcb1ab475ad42b Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sun, 9 Apr 2023 20:41:34 -0600 Subject: [PATCH] Stop relying on time pull to determine nighttime --- wallart.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wallart.ino b/wallart.ino index 1af35b9..ae5e658 100644 --- a/wallart.ino +++ b/wallart.ino @@ -307,7 +307,8 @@ void loop() { bool conn = connected(); bool day = true; - if (updateTime()) { + updateTime(); + if (timeStatus() == timeSet) { int hh = hour(); day = ((hh >= DAY_BEGIN) && (hh < DAY_END)); }