Fixed bug with axes boolean parameters value
authorLaurent Bessard
Fri, 03 May 2013 13:47:51 +0200
changeset 2145 65ed4f7c941b
parent 2144 bbd78ac226d0
child 2146 0c65c96a8379
Fixed bug with axes boolean parameters value
etherlab/EthercatCIA402Slave.py
--- a/etherlab/EthercatCIA402Slave.py	Thu May 02 13:40:35 2013 +0200
+++ b/etherlab/EthercatCIA402Slave.py	Fri May 03 13:47:51 2013 +0200
@@ -219,7 +219,7 @@
                     "param_name": param["name"],
                 }
                 if param["type"] == "boolean":
-                    param_infos["param_value"] = {True: "true", False: "false"}[param["value"]]
+                    param_infos["param_value"] = {True: "1", False: "0"}[param["value"]]
                 else:
                     param_infos["param_value"] = str(param["value"])
                 str_completion["init_axis_params"].append(