Switch to return status, not deprecated state
This commit is contained in:
parent
5616e76f50
commit
3f25959150
1 changed files with 4 additions and 4 deletions
|
|
@ -114,8 +114,8 @@ class GPUPreviewStartAPI(Resource):
|
|||
|
||||
microscope.camera.start_preview(fullscreen=fullscreen, window=window)
|
||||
|
||||
# TODO: Make schema for microscope state
|
||||
return jsonify(microscope.state)
|
||||
# TODO: Make schema for microscope status
|
||||
return jsonify(microscope.status)
|
||||
|
||||
|
||||
@ThingAction
|
||||
|
|
@ -126,5 +126,5 @@ class GPUPreviewStopAPI(Resource):
|
|||
"""
|
||||
microscope = find_device("org.openflexure.microscope")
|
||||
microscope.camera.stop_preview()
|
||||
# TODO: Make schema for microscope state
|
||||
return jsonify(microscope.state)
|
||||
# TODO: Make schema for microscope status
|
||||
return jsonify(microscope.status)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue