1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-06-18 13:52:34 +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(;;) {
if (state == LOCKED) {
bolzen_on();
status_off();
schnapper = false;
// Check if someone used the emergency unlock
@ -173,6 +174,7 @@ int main(void)
}
} else if (state == UNLOCKED) {
bolzen_off();
status_on();
if (schnapper == true) {
schnapper = false;
schnapper_on();