etherlab/EthercatMaster.py
changeset 2407 5f2b1bb464a0
parent 2406 ffd091b51cd0
child 2418 5587c490a070
--- a/etherlab/EthercatMaster.py	Sat Sep 29 18:59:41 2018 +0300
+++ b/etherlab/EthercatMaster.py	Sat Sep 29 19:10:43 2018 +0300
@@ -734,9 +734,9 @@
                 subindex = read_from.getSubIndex()
                 location = current_location + (idx, )
                 var_type = self.GetSlaveVariableDataType(pos, index, subindex)
-                name = self.FileGenerator.DeclareVariable(
-                            pos, index, subindex, var_type, "I",
-                            self.GetProcessVariableName(location, var_type))
+                name = self.FileGenerator.DeclareVariable(pos, index, subindex,
+                                                          var_type, "I",
+                                                          self.GetProcessVariableName(location, var_type))
             if write_to is not None:
                 pos = write_to.getPosition()
                 index = write_to.getIndex()
@@ -745,8 +745,7 @@
                     location = current_location + (idx, )
                     var_type = self.GetSlaveVariableDataType(pos, index, subindex)
                     name = self.GetProcessVariableName(location, var_type)
-                self.FileGenerator.DeclareVariable(
-                            pos, index, subindex, var_type, "Q", name, True)
+                self.FileGenerator.DeclareVariable(pos, index, subindex, var_type, "Q", name, True)
 
         self.FileGenerator.GenerateCFile(Gen_Ethercatfile_path, location_str, self.BaseParams.getIEC_Channel())