From f4e43935a50577c7de54ca2973dd1198ab04058b Mon Sep 17 00:00:00 2001 From: Langevin Gael Date: Sun, 10 Nov 2024 19:29:51 +0100 Subject: [PATCH] Update InMoov2.java (#1431) --- src/main/java/org/myrobotlab/service/InMoov2.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/myrobotlab/service/InMoov2.java b/src/main/java/org/myrobotlab/service/InMoov2.java index 0967c056aa..e19144c95e 100644 --- a/src/main/java/org/myrobotlab/service/InMoov2.java +++ b/src/main/java/org/myrobotlab/service/InMoov2.java @@ -1208,8 +1208,9 @@ public void onPirOff() { */ public void onPirOn() { log.info("onPirOn"); - // FIXME flash on config.flashOnBoot - invoke("publishFlash", "pir"); + if (config.flashOnPir == true) { + invoke("publishFlash", "pir"); + } ProgramAB chatBot = (ProgramAB) getPeer("chatBot"); if (chatBot != null) { String botState = chatBot.getPredicate("botState");