Stop relying on time pull to determine nighttime
This commit is contained in:
parent
0379530672
commit
9ced99c376
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue