Adds automatic turning off of patient skid
This commit is contained in:
parent
5bc81789e5
commit
ce8ff0a7bf
4
main.py
4
main.py
|
|
@ -248,9 +248,13 @@ def send_command(state: str, pu_number: int, ploop_setpoint: float = Query(...))
|
|||
"ploop_setpoint": ploop_setpoint,
|
||||
"current_state": current_state,
|
||||
}
|
||||
|
||||
except Exception as e:
|
||||
raise HTTPException(status_code=500, detail=str(e))
|
||||
|
||||
if state == "IDLE":
|
||||
set_patient_skid_users(0)
|
||||
|
||||
|
||||
## MONITORING
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user