runtime/PLCObject.py
changeset 1743 c3c3d1318130
parent 1742 92932cd370a4
child 1745 f9d32913bad4
equal deleted inserted replaced
1742:92932cd370a4 1743:c3c3d1318130
   475             # suspend but dont disable
   475             # suspend but dont disable
   476             if self._suspendDebug(False) == 0:
   476             if self._suspendDebug(False) == 0:
   477                 # keep a copy of requested idx
   477                 # keep a copy of requested idx
   478                 self._ResetDebugVariables()
   478                 self._ResetDebugVariables()
   479                 for idx, iectype, force in idxs:
   479                 for idx, iectype, force in idxs:
   480                     if force != None:
   480                     if force is not None:
   481                         c_type, unpack_func, pack_func = \
   481                         c_type, unpack_func, pack_func = \
   482                             TypeTranslator.get(iectype,
   482                             TypeTranslator.get(iectype,
   483                                                     (None, None, None))
   483                                                     (None, None, None))
   484                         force = ctypes.byref(pack_func(c_type, force))
   484                         force = ctypes.byref(pack_func(c_type, force))
   485                     self._RegisterDebugVariable(idx, force)
   485                     self._RegisterDebugVariable(idx, force)