Fixed sunrise when no time is detected

This commit is contained in:
CommanderRedYT
2022-04-17 13:32:45 +02:00
parent b3e30780a1
commit 673e304641

View File

@ -365,7 +365,7 @@ void showCustomColor()
const auto today = toDateTime(espchrono::utc_clock::now());
if (static_cast<int>(today.date.year()) < 2000)
return false;
return true;
if (!sunrise_dt || (*sunrise_dt).date.day() != today.date.day())
{