From 7652336c840bffced2fe29271f378898c1fcfbc8 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Sun, 16 May 2021 17:25:32 +0200 Subject: [PATCH] Added information regarding state of PIR sensor. --- usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h b/usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h index 544b88d93..9b7ccff20 100644 --- a/usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h +++ b/usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h @@ -272,7 +272,7 @@ public: uiDomString += (offSeconds); infoArr.add(uiDomString + F("s")); } else { - infoArr.add(F("inactive")); + infoArr.add(sensorPinState ? F("sensor on") : F("inactive")); } } else { String uiDomString = F("PIR sensor");