Bugfix - seconds to milliseconds
authorTomas Wenström <tomas.wenstrom@gmail.com>
Fri, 6 Dec 2019 23:13:21 +0000 (00:13 +0100)
committerTomas Wenström <tomas.wenstrom@gmail.com>
Fri, 6 Dec 2019 23:13:21 +0000 (00:13 +0100)
src/kaka/cakelight/mode/SunriseMode.java

index b0840c9..260d53f 100644 (file)
@@ -12,7 +12,7 @@ public class SunriseMode extends AmbientMode {
 
     @Override
     protected void updateFrame(LedFrame frame, long time, int count) {
 
     @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;
         }
             frame.fillColor(Color.rgb(255, 255, 255));
             return;
         }