One tweak to avoid crash on negative cube num
authorMark Slee <mcslee@Mark-Slees-MacBook-Pro.local>
Sun, 11 Aug 2013 02:28:14 +0000 (19:28 -0700)
committerMark Slee <mcslee@Mark-Slees-MacBook-Pro.local>
Sun, 11 Aug 2013 02:28:14 +0000 (19:28 -0700)
_Overlay.pde

index 5bafe290aee9ac51b03bf4c0ac6e4b04e5e63382..29e2353a8a0989627326d30c99947fab0662243a 100644 (file)
@@ -744,7 +744,7 @@ class DebugUI {
       boolean first = true;
       int cubeNum = 0;
       for (int cube : channel) {
-        if (cube == 0) {
+        if (cube <= 0) {
           break;
         }
         xPos += debugXSpacing;