From 489dc4b335edb0521b33dba1fe80d72c54026c14 Mon Sep 17 00:00:00 2001 From: Nicolas Hiillos Date: Tue, 17 Jan 2023 11:02:39 +0200 Subject: [PATCH] Fix status lookup --- src/axidraw_controller/src/py/axidraw_serial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/axidraw_controller/src/py/axidraw_serial.py b/src/axidraw_controller/src/py/axidraw_serial.py index 129e367..b9ef59e 100644 --- a/src/axidraw_controller/src/py/axidraw_serial.py +++ b/src/axidraw_controller/src/py/axidraw_serial.py @@ -65,7 +65,7 @@ class AxidrawSerial(Node): self.path_sub = self.create_subscription(Points, 'axidraw_path', self.stroke_callback, qos_profile=QoSProfile(depth=1)) def get_status(self, request, response): - response.status = status.get(request.resource, "Resource '{}' not found.".format(request.resource)) + response.status = self.status.get(request.resource, "Resource '{}' not found.".format(request.resource)) return response def set_busy(self):