1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 10:24:26 +01:00

doorstate: reduce logging output

Remove unnecessary output

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
Ralf Ramsauer 2019-07-07 23:03:24 +02:00
parent c8503f46e8
commit 71e55ec523

View File

@ -52,8 +52,6 @@ class AudioPlayer(Thread):
self._event.set() self._event.set()
def run(self): def run(self):
print('Run')
while not self._shutdown: while not self._shutdown:
self._event.wait(1) self._event.wait(1)
@ -144,13 +142,9 @@ while True:
if ev_line: if ev_line:
event = line.event_read() event = line.event_read()
door_open = event.type == gpiod.LineEvent.RISING_EDGE door_open = event.type == gpiod.LineEvent.RISING_EDGE
print('door_open: %s' % door_open)
publish_doorstate() publish_doorstate()
print('Loop: door_open: %s' % door_open)
print('Loop: is_locked: %s' % is_locked)
print('Loop: door_alarm_set: %s' % door_alarm_set)
print()
# Door State stuff # Door State stuff
if is_locked is not None: if is_locked is not None:
if is_locked is False: if is_locked is False: