Merge pull request #2212 from kattni/actions-status-light

Added completed - cancelled code.
This commit is contained in:
Anne Barela 2022-07-05 17:09:59 -04:00 committed by GitHub
commit 028d5c3796
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)