From 1d1b501cbf1c11ceec88373bf064d8cef3777518 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 16 Jan 2019 12:01:45 +0000 Subject: [PATCH] Zoom POST now returns camera state, rather than whole microscope state --- openflexure_microscope/api/v1/blueprints/camera/function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openflexure_microscope/api/v1/blueprints/camera/function.py b/openflexure_microscope/api/v1/blueprints/camera/function.py index e1aafb0d..5e8553a4 100644 --- a/openflexure_microscope/api/v1/blueprints/camera/function.py +++ b/openflexure_microscope/api/v1/blueprints/camera/function.py @@ -50,7 +50,7 @@ class ZoomAPI(MicroscopeView): self.microscope.camera.set_zoom(zoom_value) - return jsonify(self.microscope.state) + return jsonify(self.microscope.camera.state) class OverlayAPI(MicroscopeView):