Skip to content

Commit

Permalink
Merge pull request #192 from NebraLtd/shawaj/ledfix
Browse files Browse the repository at this point in the history
fix: change LED preference order
  • Loading branch information
shawaj authored Apr 30, 2022
2 parents e3cf0d6 + dc589c9 commit 7f90498
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gatewayconfig/processors/led_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ def run(self):

if is_raspberry_pi() or is_rockpi():
while True:
# Blink fast if diagnostics are not OK
if(not self.shared_state.are_diagnostics_ok):
self.status_led.blink(0.1, 0.1, 10, False)
# Blink slow if advertising bluetooth
elif(self.shared_state.is_advertising_bluetooth):
if(self.shared_state.is_advertising_bluetooth):
self.status_led.blink(1, 1, 1, False)
# Blink fast if diagnostics are not OK
elif(not self.shared_state.are_diagnostics_ok):
self.status_led.blink(0.1, 0.1, 10, False)
# Solid if diagnostics are OK and not advertising
else:
self.status_led.on()
Expand Down

0 comments on commit 7f90498

Please sign in to comment.