Skip to content

Commit 1a7419e

Browse files
committed
Fixed a bug in SmartHomeController
1 parent a3025b6 commit 1a7419e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.idea/workspace.xml

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/com/github/iamniklas/liocore/network/javalin/controllers/SmartHomeController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ public SmartHomeController(Javalin _app, LEDStripManager _ledStripManager, Gson
4040
}
4141

4242
void updateLEDStrip() {
43+
ledStripManager.procContainer.removeAllCurrentProcedures();
44+
4345
smartHomeModel.setBrightness(Math.max(0, Math.min(100, smartHomeModel.getBrightness())));
46+
4447
smartHomeModel.setColor(new ColorRGB(
4548
Math.max(0, Math.min(255, smartHomeModel.getColor().getR())),
4649
Math.max(0, Math.min(255, smartHomeModel.getColor().getG())),

0 commit comments

Comments
 (0)