Add tray return API call

This commit is contained in:
2024-05-14 16:01:09 -05:00
parent 951ae8cdda
commit 62ec1e7443
3 changed files with 14 additions and 10 deletions

3
run.py
View File

@@ -329,6 +329,9 @@ def check_server():
elif "position" in data:
fprint("Adding cable to dispense queue")
mainloop_get.put(("pickup", data["position"]))
elif "tray" in data:
fprint("Adding tray return to dispense queue")
mainloop_get.put(("return", data["tray"]))
else:
fprint("Invalid data.")