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

Register check queue only if needed

parent 34b8ec6f
......@@ -34,6 +34,7 @@ LICENSE: LGPL - see LICENSE file
CHANGELOG:
1.5.1 - Simulator supports continuous signals
1.5.0 - Introduce exhaustive simulator
1.4.3 - Fix Random simulation (multiple clicks happened)
1.4.2 - Button to store TC in SQL database when available
......
......@@ -16,7 +16,7 @@
__author__ = "Maxime Perrotin"
__license__ = "LGPLv3"
__version__ = "1.5.0"
__version__ = "1.5.1"
__url__ = "http://taste.tuxfamily.org"
import sys
......
......@@ -1036,10 +1036,11 @@ class sdlHandler(QObject):
.format(each.inputString))
register_func(self.proc_handlers[each.inputString.lower()][0])
# Register the Check_Queue function
func = ctypes.CFUNCTYPE(None, ctypes.POINTER(ctypes.c_int))
register_func = getattr(self.dll, "register_check_queue")
self.check_queue_callback = func(self.check_queue)
register_func(self.check_queue_callback)
if self.proc.cs_mapping:
func = ctypes.CFUNCTYPE(None, ctypes.POINTER(ctypes.c_int))
register_func = getattr(self.dll, "register_check_queue")
self.check_queue_callback = func(self.check_queue)
register_func(self.check_queue_callback)
def init_timers(self):
''' 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