DAQ: sample setter now clears manual sample. removed sample_clear. Manual sample must still be unmounted by hand.
This commit is contained in:
@@ -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)):
|
||||
|
||||
Reference in New Issue
Block a user