Adds automatic turning off of patient skid

This commit is contained in:
Etienne Chassaing 2025-08-11 13:07:14 +02:00
parent 5bc81789e5
commit ce8ff0a7bf

View File

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