]> git.dolda2000.com Git - kaka/cakelight.git/commitdiff
Added console command to switch to video mode
authorTomas Wenström <tomas.wenstrom@gmail.com>
Mon, 25 Mar 2019 21:25:56 +0000 (22:25 +0100)
committerTomas Wenström <tomas.wenstrom@gmail.com>
Mon, 25 Mar 2019 21:25:56 +0000 (22:25 +0100)
src/kaka/cakelight/Console.java

index b82806f385562023bdc331a4430f11bf403975c7..7d864d85c31a6096f60579c2f26a5e0c3b2746c8 100644 (file)
@@ -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]);