Skip to content
Snippets Groups Projects
Commit e3ce6805 authored by jkerdreu's avatar jkerdreu
Browse files

Summary: Fix rx_handler new style

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@1872 b32b6428-25c9-4566-ad07-03861ab6144f
parent 2f41dd1f
Branches
No related tags found
No related merge requests found
......@@ -10,9 +10,9 @@ def print_evt(msg):
def main():
try:
e = xaal.lib.Engine()
e.handle_rx_msg = print_evt
e.run()
eng = xaal.lib.Engine()
eng.add_rx_handler(print_evt)
eng.run()
except KeyboardInterrupt:
print("ByeBye..")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment