Skip to content

Commit

Permalink
fix: change LED preference order
Browse files Browse the repository at this point in the history
This changes the Bluetooth LED to take precedence over the error LED

Relates-to: #187
  • Loading branch information
shawaj authored Apr 17, 2022
1 parent 0b4d074 commit dc589c9
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 dc589c9

Please sign in to comment.