Merge pull request #2212 from kattni/actions-status-light
Added completed - cancelled code.
This commit is contained in:
commit
028d5c3796
1 changed files with 12 additions and 0 deletions
|
|
@ -141,6 +141,18 @@ try:
|
|||
print("Sending serial command 'RED_OFF'.")
|
||||
send_command(mSerial, RED_OFF)
|
||||
|
||||
if conclusion == "cancelled":
|
||||
print("Actions run status: Completed - cancelled.")
|
||||
if ENABLE_USB_LIGHT_MESSAGES:
|
||||
send_command(mSerial, YELLOW_OFF)
|
||||
print("Sending serial command 'RED_BLINK'.")
|
||||
send_command(mSerial, RED_BLINK)
|
||||
buzzer_on_completion()
|
||||
time.sleep(COMPLETION_LIGHT_TIME - COMPLETION_BUZZER_TIME)
|
||||
if ENABLE_USB_LIGHT_MESSAGES:
|
||||
print("Sending serial command 'RED_OFF'.")
|
||||
send_command(mSerial, RED_OFF)
|
||||
|
||||
else:
|
||||
print("Already followed the current run.")
|
||||
time.sleep(POLL_DELAY)
|
||||
|
|
|
|||
Loading…
Reference in a new issue