Commit 6576108e authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Register check queue only if needed

parent 34b8ec6f
...@@ -34,6 +34,7 @@ LICENSE: LGPL - see LICENSE file ...@@ -34,6 +34,7 @@ LICENSE: LGPL - see LICENSE file
CHANGELOG: CHANGELOG:
1.5.1 - Simulator supports continuous signals
1.5.0 - Introduce exhaustive simulator 1.5.0 - Introduce exhaustive simulator
1.4.3 - Fix Random simulation (multiple clicks happened) 1.4.3 - Fix Random simulation (multiple clicks happened)
1.4.2 - Button to store TC in SQL database when available 1.4.2 - Button to store TC in SQL database when available
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
__author__ = "Maxime Perrotin" __author__ = "Maxime Perrotin"
__license__ = "LGPLv3" __license__ = "LGPLv3"
__version__ = "1.5.0" __version__ = "1.5.1"
__url__ = "http://taste.tuxfamily.org" __url__ = "http://taste.tuxfamily.org"
import sys import sys
......
...@@ -1036,10 +1036,11 @@ class sdlHandler(QObject): ...@@ -1036,10 +1036,11 @@ class sdlHandler(QObject):
.format(each.inputString)) .format(each.inputString))
register_func(self.proc_handlers[each.inputString.lower()][0]) register_func(self.proc_handlers[each.inputString.lower()][0])
# Register the Check_Queue function # Register the Check_Queue function
func = ctypes.CFUNCTYPE(None, ctypes.POINTER(ctypes.c_int)) if self.proc.cs_mapping:
register_func = getattr(self.dll, "register_check_queue") func = ctypes.CFUNCTYPE(None, ctypes.POINTER(ctypes.c_int))
self.check_queue_callback = func(self.check_queue) register_func = getattr(self.dll, "register_check_queue")
register_func(self.check_queue_callback) self.check_queue_callback = func(self.check_queue)
register_func(self.check_queue_callback)
def init_timers(self): def init_timers(self):
''' When loading the DLL, initialize timers/set callbacks, etc ''' ''' When loading the DLL, initialize timers/set callbacks, etc '''
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment