Merge pull request #1255 from guilhermebera/patch-1

Update usermod_PIR_sensor_switch.h
pull/1257/head
Aircoookie 2020-10-14 13:58:38 +02:00 zatwierdzone przez GitHub
commit 0d96a0fb7c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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;
}