mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 18:34:25 +01:00
Activated the 'status' functionality
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
This commit is contained in:
parent
d979310893
commit
cf536ca889
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user