fix crash in gpio control

This commit is contained in:
technyon
2023-02-10 17:41:30 +01:00
parent 11caec34cd
commit 48c415f7f1
2 changed files with 1 additions and 4 deletions

View File

@@ -27,7 +27,6 @@ void Gpio::isrLock()
if(millis() < _lockedTs) return;
_nuki->lock();
_lockedTs = millis() + _debounceTime;
Log->println(F("Lock via GPIO"));;
}
void Gpio::isrUnlock()
@@ -35,7 +34,6 @@ void Gpio::isrUnlock()
if(millis() < _lockedTs) return;
_nuki->unlock();
_lockedTs = millis() + _debounceTime;
Log->println(F("Unlock via GPIO"));;
}
void Gpio::isrUnlatch()
@@ -43,5 +41,4 @@ void Gpio::isrUnlatch()
if(millis() < _lockedTs) return;
_nuki->unlatch();
_lockedTs = millis() + _debounceTime;
Log->println(F("Unlatch via GPIO"));;
}

View File

@@ -100,5 +100,5 @@ private:
unsigned long _nextRssiTs = 0;
unsigned long _lastRssi = 0;
unsigned long _disableBleWatchdogTs = 0;
NukiLock::LockAction _nextLockAction = (NukiLock::LockAction)0xff;
volatile NukiLock::LockAction _nextLockAction = (NukiLock::LockAction)0xff;
};