kopia lustrzana https://github.com/Aircoookie/WLED
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.pull/1255/head
rodzic
13f18492ad
commit
fb6b2cbfa2
|
@ -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;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue