From: Martin Mareš Date: Mon, 9 Mar 2026 21:17:57 +0000 (+0100) Subject: X-mas: Blanking by daylight X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;p=home-hw.git X-mas: Blanking by daylight --- diff --git a/xmas-lights/daemon/xmas-lights.c b/xmas-lights/daemon/xmas-lights.c index 7111d0a..aba98b7 100644 --- a/xmas-lights/daemon/xmas-lights.c +++ b/xmas-lights/daemon/xmas-lights.c @@ -319,7 +319,7 @@ static void clock_tick(void) clock_year(2026); #else struct tm *tm = localtime(&t); - if (tm->tm_hour >= 9 && tm->tm_hour < 16) + if (tm->tm_hour >= 2 && tm->tm_hour < 17) clock_blank(); else clock_time(tm->tm_hour, tm->tm_min);