1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-06-26 17:25:09 +02:00

Switched button type from open to close

Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
This commit is contained in:
Ralf Ramsauer 2015-08-27 17:54:04 +02:00
parent 6a8e917ede
commit d163e826ea

View File

@ -78,7 +78,7 @@ void Door::unlock()
digitalWrite(_HEARTBEATPIN, LOW);
usleep(10000);
if (digitalRead(_LOCKPIN)) {
if (!digitalRead(_LOCKPIN)) {
std::thread([this] () {
lock();
}).detach();