From 5d683ebced0aa20d8f33665af4939d086921e8fe Mon Sep 17 00:00:00 2001 From: Langevin Gael Date: Fri, 13 Oct 2023 11:05:45 +0200 Subject: [PATCH] wake with fsm state --- src/main/java/org/myrobotlab/service/InMoov2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }