diff --git a/src/main/java/org/myrobotlab/service/InMoov2.java b/src/main/java/org/myrobotlab/service/InMoov2.java index eb72c37425..7760412fee 100644 --- a/src/main/java/org/myrobotlab/service/InMoov2.java +++ b/src/main/java/org/myrobotlab/service/InMoov2.java @@ -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"); }