Update usermod_PIR_sensor_switch.h
Current: If I disable PIR after it switch strip on, it'll switch off by timer. Update: If I disable PIR after it switch strip on, it'll keep strip on.
This commit is contained in:
parent
13f18492ad
commit
fb6b2cbfa2
@ -99,7 +99,9 @@ class PIRsensorSwitch : public Usermod {
|
||||
*/
|
||||
bool handleOffTimer() {
|
||||
if (m_offTimerStart > 0 && millis() - m_offTimerStart > m_switchOffDelay) {
|
||||
if (m_PIRenabled == true){
|
||||
switchStrip(false);
|
||||
}
|
||||
m_offTimerStart = 0;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user