Skip to content

Commit c6e0145

Browse files
committed
change fade time for seezeit
1 parent 0bb4be5 commit c6e0145

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/out_5a_75e.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ int render(void)
214214
{
215215
time_t tm_now = time(NULL);
216216
struct tm *tm_struct = localtime(&tm_now);
217-
int hour = tm_struct->tm_hour;
217+
float hour = tm_struct->tm_hour + tm_struct->tm_min / 60.0;
218218

219219
// analyse
220220
int pixsum = 0;
@@ -230,7 +230,7 @@ int render(void)
230230
double bright = (double)pixsum / (WIDTH * HEIGHT);
231231
double fade = 127.0 / bright;
232232
fade = MIN(1.0, fade);
233-
if (hour > 8 && hour < 22)
233+
if (hour > 6 && hour < 20.5)
234234
{
235235
fade = 1.0;
236236
}

0 commit comments

Comments
 (0)