Sleep 20 ms each frame in the ambient mode
authorTomas Wenström <tomas.wenstrom@gmail.com>
Mon, 8 May 2017 19:43:33 +0000 (21:43 +0200)
committerTomas Wenström <tomas.wenstrom@gmail.com>
Mon, 8 May 2017 19:43:33 +0000 (21:43 +0200)
src/kaka/cakelight/AmbientMode.java

index 0b41b4c..ae223f1 100644 (file)
@@ -35,7 +35,7 @@ public class AmbientMode extends Mode { // TODO split into DynamicAmbient and St
                         updateFrame(frame, System.currentTimeMillis() - start, index);
                         updateWithFrame(frame);
                         index = (index + 1) % config.leds.getCount();
-                        Thread.sleep(0);
+                        Thread.sleep(20);
                     }
                 } catch (InterruptedException e) {
                 }