Switch to return status, not deprecated state

This commit is contained in:
Joel Collins 2020-01-10 19:58:45 +00:00
parent 5616e76f50
commit 3f25959150

View file

@ -114,8 +114,8 @@ class GPUPreviewStartAPI(Resource):
microscope.camera.start_preview(fullscreen=fullscreen, window=window) microscope.camera.start_preview(fullscreen=fullscreen, window=window)
# TODO: Make schema for microscope state # TODO: Make schema for microscope status
return jsonify(microscope.state) return jsonify(microscope.status)
@ThingAction @ThingAction
@ -126,5 +126,5 @@ class GPUPreviewStopAPI(Resource):
""" """
microscope = find_device("org.openflexure.microscope") microscope = find_device("org.openflexure.microscope")
microscope.camera.stop_preview() microscope.camera.stop_preview()
# TODO: Make schema for microscope state # TODO: Make schema for microscope status
return jsonify(microscope.state) return jsonify(microscope.status)