X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fkaka%2Fcakelight%2FConfiguration.java;h=4a6a6a6b5ad033f7bc0bbcdd2cedce89717c4eb4;hb=e9e4a88732e23b350bb8d2a98a662cbca850cd47;hp=4d727cc6de67bd4f0e25897b562a42036b6d891d;hpb=f2eedb6d98ae638d65c9bfd1a9a339a060235592;p=kaka%2Fcakelight.git diff --git a/src/kaka/cakelight/Configuration.java b/src/kaka/cakelight/Configuration.java index 4d727cc..4a6a6a6 100644 --- a/src/kaka/cakelight/Configuration.java +++ b/src/kaka/cakelight/Configuration.java @@ -98,13 +98,13 @@ public class Configuration { public class LedConfiguration { public int cols; public int rows; - public int level; + public int brightness; public LedType type; private LedConfiguration(Properties prop) { cols = Integer.parseInt(get(prop, "leds.cols")); rows = Integer.parseInt(get(prop, "leds.rows")); - level = Math.min(0, Math.max(31, Integer.parseInt(get(prop, "leds.level", "31")))); + brightness = Math.max(1, Math.min(31, Integer.parseInt(get(prop, "leds.brightness", "31")))); switch (get(prop, "leds.type", "").toUpperCase()) { case "WS2801": type = LedType.WS2801;