1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-06-10 02:12:34 +02:00

Added logging to close request on button press

Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
This commit is contained in:
Ralf Ramsauer 2015-08-30 21:16:01 +02:00
parent d933bc9821
commit 4dbce13cb0

View File

@ -85,6 +85,7 @@ void Door::unlock()
if (!digitalRead(_LOCKPIN)) {
std::thread([this] () {
_l(LogLevel::info, "Incoming door close request on button press");
lock();
}).detach();
}