Commit 39117447 authored by Maxime Perrotin's avatar Maxime Perrotin

Respect C casing for PI names

parent 6d38b9a9
......@@ -616,8 +616,8 @@ class sdlHandler(QObject):
''' Send a TC by calling directly the function in the dll '''
# Save internal state, send tc, restore state
getattr(self.dll, "_save_context")()
getattr(self.dll, '{}_PI_{}'.format(self.proc.processName,
name.lower()))(arg_ctypes_ptr)
getattr(self.dll, '{}_PI_{}'.format(self.proc.processName.lower(),
name))(arg_ctypes_ptr)
new_hash = self.on_event()
getattr(self.dll, "_restore_context")()
return new_hash
......@@ -976,8 +976,9 @@ class sdlHandler(QObject):
if col:
row += 1
col = (col + 1) % 2
tc = getattr(self.dll, '{}_PI_{}'.format(self.proc.processName,
name.lower()))
tc = getattr(self.dll, '{}_PI_{}'.format(
self.proc.processName.lower(),
name))
button.pressed.connect(partial(self.send_tc, name, tc))
def set_paramless_tm(self):
......
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