etherlab/EthercatMaster.py
changeset 2399 a9a6dbc506e9
parent 2397 25f16349644b
child 2403 045df8ecc8b3
equal deleted inserted replaced
2398:0ae721a79654 2399:a9a6dbc506e9
   585             current_entry = None
   585             current_entry = None
   586             for (index, subindex), entry in entries_list:
   586             for (index, subindex), entry in entries_list:
   587                 entry["children"] = []
   587                 entry["children"] = []
   588                 if slave_pos is not None:
   588                 if slave_pos is not None:
   589                     entry["Position"] = str(slave_pos)
   589                     entry["Position"] = str(slave_pos)
   590                 entry
       
   591                 if index != current_index:
   590                 if index != current_index:
   592                     current_index = index
   591                     current_index = index
   593                     current_entry = entry
   592                     current_entry = entry
   594                     entries.append(entry)
   593                     entries.append(entry)
   595                 elif current_entry is not None:
   594                 elif current_entry is not None: