etherlab/EthercatMaster.py
changeset 2394 bbc3d3d93562
parent 2392 aad985da14f7
child 2396 41adf1dfc7a7
equal deleted inserted replaced
2393:fddc29dee614 2394:bbc3d3d93562
   784 
   784 
   785 # -------------------------------------------------------------------------------
   785 # -------------------------------------------------------------------------------
   786 #                      Current Buffering Management Functions
   786 #                      Current Buffering Management Functions
   787 # -------------------------------------------------------------------------------
   787 # -------------------------------------------------------------------------------
   788 
   788 
   789     """
       
   790     Return a copy of the config
       
   791     """
       
   792     def Copy(self, model):
   789     def Copy(self, model):
       
   790         """Return a copy of the config"""
   793         return deepcopy(model)
   791         return deepcopy(model)
   794 
   792 
   795     def CreateBuffer(self, saved):
   793     def CreateBuffer(self, saved):
   796         self.Buffer = UndoBuffer(
   794         self.Buffer = UndoBuffer(
   797             (EtherCATConfigParser.Dumps(self.Config),
   795             (EtherCATConfigParser.Dumps(self.Config),