Skip to content

Commit

Permalink
wake with fsm state
Browse files Browse the repository at this point in the history
  • Loading branch information
hairygael authored Oct 13, 2023
1 parent ab0c3f2 commit 5d683eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/myrobotlab/service/InMoov2.java
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ public void onPirOn() {
led.interval = 500;
// FIXME flash on config.flashOnBoot
invoke("publishFlash");
String botState = chatBot.getPredicate("botState");
String botState = fsm.getCurrent();
if ("sleeping".equals(botState)) {
invoke("publishEvent", "WAKE");
}
Expand Down

0 comments on commit 5d683eb

Please sign in to comment.