DAQ: fixed potential bug where current_sample.db_id was always sent during auto loop centering.
This commit is contained in:
@@ -321,7 +321,7 @@ async def alc_background(token: str = Depends(oauth2_scheme)) -> str:
|
||||
@app.post("/alc/center_loop")
|
||||
async def alc_center_loop(token: str = Depends(oauth2_scheme)) -> str:
|
||||
auth.check_jwt_rw(cfg, auth.parse_token(token))
|
||||
daq.auto_loop_center(cfg.current_sample.db_id)
|
||||
daq.auto_loop_center()
|
||||
return "OK"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user