Skip to content

Commit

Permalink
Small tweaks to indicator display. Re #89
Browse files Browse the repository at this point in the history
  • Loading branch information
emxsys committed Aug 27, 2020
1 parent 5f07735 commit e757ccf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion callattendant/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ def run(self):
if not caller_permitted and not caller_blocked:
caller_screened = True
action = "Screened"
self.approved_indicator.blink()

# Log every call to the database (and console)
call_no = self.logger.log_caller(caller, action, reason)
Expand Down
2 changes: 1 addition & 1 deletion callattendant/hardware/indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def __init__(self, gpio_pin=GPIO_RING):
super().__init__(gpio_pin)

def ring(self):
self.led.blink(0.2, 0.2, 30)
self.blink()
print("{RING LED BLINKING}")


Expand Down
4 changes: 4 additions & 0 deletions tests/test_indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ def test_multiple():
blocked = BlockedIndicator()
message = MessageIndicator()
message_count = MessageCountIndicator()

for i in range(0, 16):
message_count.display_hex(i)
time.sleep(1)

print("[Visual Tests]")

Expand Down

0 comments on commit e757ccf

Please sign in to comment.