From 054af8b2a7970136ad665dc999cf83c077e17b1a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tomas=20Wenstr=C3=B6m?= Date: Sat, 7 Dec 2019 00:13:21 +0100 Subject: [PATCH] Bugfix - seconds to milliseconds --- src/kaka/cakelight/mode/SunriseMode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kaka/cakelight/mode/SunriseMode.java b/src/kaka/cakelight/mode/SunriseMode.java index b0840c9..260d53f 100644 --- a/src/kaka/cakelight/mode/SunriseMode.java +++ b/src/kaka/cakelight/mode/SunriseMode.java @@ -12,7 +12,7 @@ public class SunriseMode extends AmbientMode { @Override protected void updateFrame(LedFrame frame, long time, int count) { - if (time > durationSeconds) { + if (time > durationSeconds * 1000) { frame.fillColor(Color.rgb(255, 255, 255)); return; } -- 2.11.0