DAQ: sample setter now clears manual sample. removed sample_clear. Manual sample must still be unmounted by hand.

This commit is contained in:
2025-07-04 11:59:36 +02:00
parent 4324a814de
commit 6bc3ed2eae
6 changed files with 28 additions and 28 deletions
-5
View File
@@ -217,11 +217,6 @@ async def unmount(token: str = Depends(oauth2_scheme)):
daq.sample = None
return "OK"
@app.post("/sample/clear")
async def sample_clear(token: str = Depends(oauth2_scheme)):
auth.check_jwt_rw(cfg, auth.parse_token(token))
daq.clear_current_sample()
return "OK"
@app.post("/sample/manual")
async def manual(s: SampleShortInfo, token: str = Depends(oauth2_scheme)):