From 98be19b29ff2597dc4af0c7c61d39e390720e6d3 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Thu, 5 Jan 2023 22:46:30 +0100 Subject: [PATCH] Fix switching off for PIR usermod. --- 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 f716e48ec..f4d699969 100644 --- a/usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h +++ b/usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h @@ -136,7 +136,7 @@ private: } } else { if (m_offPreset) { - if (currentPreset==m_onPreset || currentPlaylist==m_onPreset) applyPreset(m_offPreset, NotifyUpdateMode); + applyPreset(m_offPreset, NotifyUpdateMode); return; } else if (prevPlaylist) { if (currentPreset==m_onPreset || currentPlaylist==m_onPreset) applyPreset(prevPlaylist, NotifyUpdateMode);