Skip to content

Commit

Permalink
pir modif
Browse files Browse the repository at this point in the history
  • Loading branch information
hairygael authored Oct 12, 2023
1 parent aa39808 commit b8c552d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/org/myrobotlab/service/InMoov2.java
Original file line number Diff line number Diff line change
Expand Up @@ -925,9 +925,10 @@ public void onPirOn() {
led.interval = 500;
// FIXME flash on config.flashOnBoot
invoke("publishFlash");
// pirOn event vs wake event
invoke("publishEvent", "WAKE");
}
String sleepState = fsm.getCurrent();
if ("SLEEPING".equals(sleepState))
invoke("publishEvent", "WAKE");
}

// GOOD GOOD GOOD - LOOPBACK - flexible and replacable by python
// yet provides a stable default, which can be fully replaced
Expand Down

0 comments on commit b8c552d

Please sign in to comment.