From 188baf1e88e38e46c98b709f345969e67221d6f3 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 12 Sep 2011 10:40:29 +0100 Subject: Small syntax fixes. --- PunchingBag/src/PunchingBag.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PunchingBag/src/PunchingBag.java b/PunchingBag/src/PunchingBag.java index e046842..289405e 100644 --- a/PunchingBag/src/PunchingBag.java +++ b/PunchingBag/src/PunchingBag.java @@ -246,7 +246,7 @@ public class PunchingBag implements Runnable { colour)) { doneSomething = true; } - if (setLEDInternal(x + (height / 2), (y - (height / 2)) + heightEx)) { + if (setLEDInternal(x + (height / 2), (y - (height / 2)) + heightEx, colour)) { doneSomething = true; } if (heightEx < height) { @@ -256,7 +256,7 @@ public class PunchingBag implements Runnable { widthEx++; } - } while (height && width >= 0); + } while (height >= 0 && width >= 0); return doneSomething; } -- cgit v1.2.3