From: Tomas Wenström Date: Fri, 6 Dec 2019 23:13:21 +0000 (+0100) Subject: Bugfix - seconds to milliseconds X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=054af8b2a7970136ad665dc999cf83c077e17b1a;p=kaka%2Fcakelight.git Bugfix - seconds to milliseconds --- 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; }