refactor: Refactor thunder cast process
This commit is contained in:
parent
16434ade2c
commit
16bf0fe61a
4
main.py
4
main.py
|
@ -20,9 +20,7 @@ def cast_spell():
|
||||||
return f"Successfully cast to Trotec.", 200
|
return f"Successfully cast to Trotec.", 200
|
||||||
elif machine == "thunder":
|
elif machine == "thunder":
|
||||||
logging.info("Casting to Thunder.")
|
logging.info("Casting to Thunder.")
|
||||||
# Assuming we don't need to kill_vnc before casting to thunder,
|
cast_trotec()
|
||||||
# or that thunder might be on a different display/setup.
|
|
||||||
# If kill_vnc() is always needed, it can be called here too.
|
|
||||||
cast_thunder()
|
cast_thunder()
|
||||||
return f"Successfully cast to Thunder.", 200
|
return f"Successfully cast to Thunder.", 200
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user