Skip to content

Commit

Permalink
gael pir fix pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Nov 4, 2023
1 parent c2e84dc commit 0d1de08
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/org/myrobotlab/service/InMoov2.java
Original file line number Diff line number Diff line change
Expand Up @@ -927,8 +927,10 @@ public void onPirOn() {
led.interval = 500;
// FIXME flash on config.flashOnBoot
invoke("publishFlash");
// pirOn event vs wake event
invoke("publishEvent", "WAKE");
String botState = chatBot.getPredicate("botState");
if ("sleeping".equals(botState)) {
invoke("publishEvent", "WAKE");
}
}

// GOOD GOOD GOOD - LOOPBACK - flexible and replacable by python
Expand Down

0 comments on commit 0d1de08

Please sign in to comment.