mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-11-16 20:19:13 +01:00
Switched button type from open to close
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
This commit is contained in:
parent
6a8e917ede
commit
d163e826ea
@ -78,7 +78,7 @@ void Door::unlock()
|
|||||||
digitalWrite(_HEARTBEATPIN, LOW);
|
digitalWrite(_HEARTBEATPIN, LOW);
|
||||||
usleep(10000);
|
usleep(10000);
|
||||||
|
|
||||||
if (digitalRead(_LOCKPIN)) {
|
if (!digitalRead(_LOCKPIN)) {
|
||||||
std::thread([this] () {
|
std::thread([this] () {
|
||||||
lock();
|
lock();
|
||||||
}).detach();
|
}).detach();
|
||||||
|
Loading…
Reference in New Issue
Block a user