diff --git a/script/local.py b/script/local.py index e871a87..d5ba915 100644 --- a/script/local.py +++ b/script/local.py @@ -48,7 +48,7 @@ class RobotModbus(DeviceBase): index = index + 1 if index == robot_args.size: raise Exception("Invalid number of arguments") - robot.write(to_array(args, 'i')) + robot_args.write(to_array(args, 'i')) try: self.request() err = robot_ack.take()