Dolda2000 GitWeb
/
kaka
/
cakelight.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfixes
[kaka/cakelight.git]
/
src
/
kaka
/
cakelight
/
CakeLight.java
diff --git
a/src/kaka/cakelight/CakeLight.java
b/src/kaka/cakelight/CakeLight.java
index
69f6677
..
95a3be1
100644
(file)
--- a/
src/kaka/cakelight/CakeLight.java
+++ b/
src/kaka/cakelight/CakeLight.java
@@
-20,6
+20,7
@@
public class CakeLight {
public void cleanup() {
if (this.mode != null) {
public void cleanup() {
if (this.mode != null) {
+ this.mode.setFrameListener(ledFrame -> {}); // To avoid any frame being sent to the controller while the thread is exiting
this.mode.exit();
}
}
this.mode.exit();
}
}
@@
-42,6
+43,6
@@
public class CakeLight {
public void turnOff() {
cleanup();
public void turnOff() {
cleanup();
- ledController.onFrame(LedFrame.from(config));
+ ledController.onFrame(LedFrame.from(config)
.fillColor(0, 0, 0)
);
}
}
}
}