aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PunchingBag/src/PunchingBag.java4
1 files 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;
}