Fix status lookup

This commit is contained in:
2023-01-17 11:02:39 +02:00
parent 4935245c61
commit 489dc4b335

View File

@@ -65,7 +65,7 @@ class AxidrawSerial(Node):
self.path_sub = self.create_subscription(Points, 'axidraw_path', self.stroke_callback, qos_profile=QoSProfile(depth=1)) self.path_sub = self.create_subscription(Points, 'axidraw_path', self.stroke_callback, qos_profile=QoSProfile(depth=1))
def get_status(self, request, response): 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 return response
def set_busy(self): def set_busy(self):