From 673e304641bc159f777a9524b78620aa3adebb7a Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Sun, 17 Apr 2022 13:32:45 +0200 Subject: [PATCH] Fixed sunrise when no time is detected --- main/ledstrip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/ledstrip.cpp b/main/ledstrip.cpp index 30c2d07..81de640 100644 --- a/main/ledstrip.cpp +++ b/main/ledstrip.cpp @@ -365,7 +365,7 @@ void showCustomColor() const auto today = toDateTime(espchrono::utc_clock::now()); if (static_cast(today.date.year()) < 2000) - return false; + return true; if (!sunrise_dt || (*sunrise_dt).date.day() != today.date.day()) {