From 0b5bef0c1d599d8cfe7df0200369d7470889be79 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tomas=20Wenstr=C3=B6m?= Date: Mon, 25 Mar 2019 22:25:56 +0100 Subject: [PATCH] Added console command to switch to video mode --- src/kaka/cakelight/Console.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kaka/cakelight/Console.java b/src/kaka/cakelight/Console.java index b82806f..7d864d8 100644 --- a/src/kaka/cakelight/Console.java +++ b/src/kaka/cakelight/Console.java @@ -28,6 +28,8 @@ public class Console extends Thread { if (input.matches("[0-5]")) { cakelight.setMode(new AmbientMode(new String[] {input})); System.out.println("setting ambient mode to " + input); + } else if (input.matches("v|video")) { + cakelight.setMode(new VideoMode()); } else if (input.matches("(b|brightness)\\s+[0-9]+")) { String[] split = input.split("\\s+"); config.leds.brightness = Integer.parseInt(split[1]); -- 2.11.0