etherlab/EtherCATManagementEditor.py
changeset 2358 8e5a9830867e
parent 2356 c26e0c66d8d5
child 2360 2a3d022a7dac
--- a/etherlab/EtherCATManagementEditor.py	Fri Sep 28 17:52:30 2018 +0300
+++ b/etherlab/EtherCATManagementEditor.py	Fri Sep 28 17:59:28 2018 +0300
@@ -1401,7 +1401,7 @@
                 self.SetColLabelValue(16, "Text View")
                 self.SetColSize(16, (self.GetSize().x-120)*4/20)
             else:
-                self.SetColLabelValue(col, '%s'%col)
+                self.SetColLabelValue(col, '%s' % col)
                 self.SetColSize(col, (self.GetSize().x-120)/20)
 
         # set data into table
@@ -1672,7 +1672,7 @@
         for address in range(0x1000):
             # arrange 2 Bytes of register data
             reg_word = reg_data[address].split('x')[1] + reg_word
-            if (address%2) == 1:
+            if (address % 2) == 1:
                 # append address
                 hex_address = "{:0>4x}".format(address-1)
                 row_data.append(hex_address)