Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
asn1-value-editor
Commits
6576108e
Commit
6576108e
authored
Aug 21, 2016
by
Maxime Perrotin
Browse files
Register check queue only if needed
parent
34b8ec6f
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
6576108e
...
...
@@ -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
...
...
asn1_value_editor/asn1_value_editor.py
View file @
6576108e
...
...
@@ -16,7 +16,7 @@
__author__
=
"Maxime Perrotin"
__license__
=
"LGPLv3"
__version__
=
"1.5.
0
"
__version__
=
"1.5.
1
"
__url__
=
"http://taste.tuxfamily.org"
import
sys
...
...
asn1_value_editor/sdlHandler.py
View file @
6576108e
...
...
@@ -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 '''
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment