diff -r 2a3d022a7dac -r 5d6ce74f7835 etherlab/CommonEtherCATFunction.py --- a/etherlab/CommonEtherCATFunction.py Fri Sep 28 18:04:28 2018 +0300 +++ b/etherlab/CommonEtherCATFunction.py Fri Sep 28 18:06:59 2018 +0300 @@ -863,8 +863,8 @@ eeprom = [] self.Strings = [] data = "" - count = 0 # string counter - padflag = False # padding flag if category length is odd + count = 0 # string counter + padflag = False # padding flag if category length is odd # index information for General Category in EEPROM self.GroupIdx = 0 @@ -1173,11 +1173,11 @@ eeprom.append("{:0>2x}".format(self.NameIdx)) # word 3 : Physical Layer Port info. and CoE Details - eeprom.append("01") # Physical Layer Port info - assume 01 + eeprom.append("01") # Physical Layer Port info - assume 01 # CoE Details; ----- coe_details = 0 mb = device.getMailbox() - coe_details = 1 # sdo enabled + coe_details = 1 # sdo enabled if mb is not None : coe = mb.getCoE() if coe is not None: @@ -1214,7 +1214,7 @@ eeprom.append("01" if ds402ch in [True,1] else "00") # word 6 : SysmanClass(reserved) and Flags - eeprom.append("00") # reserved + eeprom.append("00") # reserved # Flags en_safeop = False en_lrw = False @@ -1261,7 +1261,7 @@ """ eeprom = [] data = "" - count = 0 # number of FMMU + count = 0 # number of FMMU padflag = False for fmmu in device.getFmmu():