Skip to content

Commit

Permalink
Corrected references to the library by removing the '2' from several …
Browse files Browse the repository at this point in the history
…places. Fixes it.
  • Loading branch information
camb416 committed Mar 19, 2013
1 parent d0ac496 commit 3b682b7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Phidgets/Devices/RFID.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ def __init__(self):

if sys.platform == 'win32':
self.__OUTPUTCHANGEHANDLER = WINFUNCTYPE(c_int, c_void_p, c_void_p, c_int, c_int)
self.__TAG2HANDLER = WINFUNCTYPE(c_int, c_void_p, c_void_p, c_char_p, c_int)
self.__TAGLOST2HANDLER = WINFUNCTYPE(c_int, c_void_p, c_void_p, c_char_p, c_int)
self.__TAGHANDLER = WINFUNCTYPE(c_int, c_void_p, c_void_p, c_char_p, c_int)
self.__TAGLOSTHANDLER = WINFUNCTYPE(c_int, c_void_p, c_void_p, c_char_p, c_int)
elif sys.platform == 'darwin' or sys.platform == 'linux2':
self.__OUTPUTCHANGEHANDLER = CFUNCTYPE(c_int, c_void_p, c_void_p, c_int, c_int)
self.__TAG2HANDLER = CFUNCTYPE(c_int, c_void_p, c_void_p, c_char_p, c_int)
self.__TAGLOST2HANDLER = CFUNCTYPE(c_int, c_void_p, c_void_p, c_char_p, c_int)
self.__TAGHANDLER = CFUNCTYPE(c_int, c_void_p, c_void_p, c_char_p, c_int)
self.__TAGLOSTHANDLER = CFUNCTYPE(c_int, c_void_p, c_void_p, c_char_p, c_int)

def __del__(self):
"""The Destructor Method for the RFID Class
Expand Down Expand Up @@ -336,7 +336,7 @@ def getLastTag(self):
protocol = c_int()

try:
result = PhidgetLibrary.getDll().CPhidgetRFID_getLastTag2(self.handle, byref(tagString), byref(protocol))
result = PhidgetLibrary.getDll().CPhidgetRFID_getLastTag(self.handle, byref(tagString), byref(protocol))
except RuntimeError:
raise

Expand All @@ -362,7 +362,7 @@ def getLastTagProtocol(self):
protocol = c_int()

try:
result = PhidgetLibrary.getDll().CPhidgetRFID_getLastTag2(self.handle, byref(tagString), byref(protocol))
result = PhidgetLibrary.getDll().CPhidgetRFID_getLastTag(self.handle, byref(tagString), byref(protocol))
except RuntimeError:
raise

Expand Down Expand Up @@ -422,10 +422,10 @@ def setOnTagHandler(self, tagHandler):
self.__onTagHandler = None
else:
self.__tagGain = tagHandler
self.__onTagHandler = self.__TAG2HANDLER(self.__nativeTagGainEvent)
self.__onTagHandler = self.__TAGHANDLER(self.__nativeTagGainEvent)

try:
result = PhidgetLibrary.getDll().CPhidgetRFID_set_OnTag2_Handler(self.handle, self.__onTagHandler, None)
result = PhidgetLibrary.getDll().CPhidgetRFID_set_OnTag_Handler(self.handle, self.__onTagHandler, None)
except RuntimeError:
self.__tagGain = None
self.__onTagHandler = None
Expand Down Expand Up @@ -457,10 +457,10 @@ def setOnTagLostHandler(self, tagLostHandler):
self.__onTagLostHandler = None
else:
self.__tagLoss = tagLostHandler
self.__onTagLostHandler = self.__TAGLOST2HANDLER(self.__nativeTagLossEvent)
self.__onTagLostHandler = self.__TAGLOSTHANDLER(self.__nativeTagLossEvent)

try:
result = PhidgetLibrary.getDll().CPhidgetRFID_set_OnTagLost2_Handler(self.handle, self.__onTagLostHandler, None)
result = PhidgetLibrary.getDll().CPhidgetRFID_set_OnTagLost_Handler(self.handle, self.__onTagLostHandler, None)
except RuntimeError:
self.__tagLoss = None
self.__onTagLostHandler = None
Expand Down

0 comments on commit 3b682b7

Please sign in to comment.