Stop relying on time pull to determine nighttime

This commit is contained in:
Neale Pickett 2023-04-09 20:41:34 -06:00
parent 0379530672
commit 9ced99c376
1 changed files with 2 additions and 1 deletions

View File

@ -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));
}