mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 10:24:26 +01:00
Added logging to close request on button press
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
This commit is contained in:
parent
20de426ffd
commit
39a9aa43b0
@ -85,6 +85,7 @@ void Door::unlock()
|
|||||||
|
|
||||||
if (!digitalRead(_LOCKPIN)) {
|
if (!digitalRead(_LOCKPIN)) {
|
||||||
std::thread([this] () {
|
std::thread([this] () {
|
||||||
|
_l(LogLevel::info, "Incoming door close request on button press");
|
||||||
lock();
|
lock();
|
||||||
}).detach();
|
}).detach();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user