mirror of
https://github.com/Fishwaldo/WLED.git
synced 2025-03-16 12:11:34 +00:00
Merge pull request #1255 from guilhermebera/patch-1
Update usermod_PIR_sensor_switch.h
This commit is contained in:
commit
0d96a0fb7c
1 changed files with 3 additions and 1 deletions
|
@ -99,7 +99,9 @@ class PIRsensorSwitch : public Usermod {
|
|||
*/
|
||||
bool handleOffTimer() {
|
||||
if (m_offTimerStart > 0 && millis() - m_offTimerStart > m_switchOffDelay) {
|
||||
switchStrip(false);
|
||||
if (m_PIRenabled == true){
|
||||
switchStrip(false);
|
||||
}
|
||||
m_offTimerStart = 0;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue