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

Activated the 'status' functionality

Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
This commit is contained in:
Ralf Ramsauer 2015-09-17 18:17:53 +02:00
parent d979310893
commit cf536ca889

View File

@ -149,6 +149,7 @@ int main(void)
for(;;) { for(;;) {
if (state == LOCKED) { if (state == LOCKED) {
bolzen_on(); bolzen_on();
status_off();
schnapper = false; schnapper = false;
// Check if someone used the emergency unlock // Check if someone used the emergency unlock
@ -173,6 +174,7 @@ int main(void)
} }
} else if (state == UNLOCKED) { } else if (state == UNLOCKED) {
bolzen_off(); bolzen_off();
status_on();
if (schnapper == true) { if (schnapper == true) {
schnapper = false; schnapper = false;
schnapper_on(); schnapper_on();