From 2e308eba19d2ecdc077fbd3b2952425422a5a665 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tomas=20Wenstr=C3=B6m?= Date: Mon, 8 May 2017 21:43:33 +0200 Subject: [PATCH] Sleep 20 ms each frame in the ambient mode --- src/kaka/cakelight/AmbientMode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kaka/cakelight/AmbientMode.java b/src/kaka/cakelight/AmbientMode.java index 0b41b4c..ae223f1 100644 --- a/src/kaka/cakelight/AmbientMode.java +++ b/src/kaka/cakelight/AmbientMode.java @@ -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) { } -- 2.11.0