From 7fdb56137cb04c3ba8cc377f48ea5d130fac8689 Mon Sep 17 00:00:00 2001 From: Langevin Gael Date: Fri, 13 Oct 2023 11:12:58 +0200 Subject: [PATCH] chatBot set botState --- 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 7760412fee..eb72c37425 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 = fsm.getCurrent(); + String botState = chatBot.getPredicate("botState"); if ("sleeping".equals(botState)) { invoke("publishEvent", "WAKE"); }