From 1ef3cf4f5356d9cd7a6c7dc485fe1a244a463710 Mon Sep 17 00:00:00 2001 From: Ollo Date: Sun, 21 Mar 2021 14:14:51 +0100 Subject: [PATCH] Less debugging in simulation --- simulation/src/de/c3ma/ollo/mockup/ESP8266Ws2812.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/simulation/src/de/c3ma/ollo/mockup/ESP8266Ws2812.java b/simulation/src/de/c3ma/ollo/mockup/ESP8266Ws2812.java index 7ce672c..86a811b 100644 --- a/simulation/src/de/c3ma/ollo/mockup/ESP8266Ws2812.java +++ b/simulation/src/de/c3ma/ollo/mockup/ESP8266Ws2812.java @@ -169,7 +169,7 @@ public class ESP8266Ws2812 extends TwoArgFunction { ESP8266Ws2812.layout.fillLEDs(r, g, b); } }); - System.out.println("[WS2812] buffer fill with " + r + "," + g + "," + b); + //System.out.println("[WS2812] buffer fill with " + r + "," + g + "," + b); return LuaValue.valueOf(true); } else { System.err.println("[WS2812] buffer not initialized ("+varargs.narg() +"args) , length "+ length + ", raw:" + color.toString()); @@ -211,9 +211,9 @@ public class ESP8266Ws2812 extends TwoArgFunction { }); return LuaValue.valueOf(true); } else { - for(int i=0; i <= varargs.narg(); i++) { - System.err.println("[WS2812] write ["+(i) + "] (" + varargs.arg(i).typename() + ") " + varargs.arg(i).toString() ); - } +// for(int i=0; i <= varargs.narg(); i++) { +// System.err.println("[WS2812] write ["+(i) + "] (" + varargs.arg(i).typename() + ") " + varargs.arg(i).toString() ); +// } System.err.println("[WS2812] set with " + varargs.narg() + " arguments at index="+ index + " and "+ length + " charactes not matching"); return LuaValue.NIL; @@ -244,7 +244,7 @@ public class ESP8266Ws2812 extends TwoArgFunction { array[1] = (char) (color.getGreen() ); array[2] = (char) (color.getBlue() ); - System.err.println("[WS2812] reading " + offset + ":" + ((int)array[0]) +"," + ((int) array[1]) + "," + ((int) array[2]) + " from " + color); +// System.err.println("[WS2812] reading " + offset + ":" + ((int)array[0]) +"," + ((int) array[1]) + "," + ((int) array[2]) + " from " + color); return LuaString.valueOf(array); }