Skip to content
Snippets Groups Projects
Commit 1007ede8 authored by Robin.Mueller's avatar Robin.Mueller
Browse files

additional getter/setters

parent feda85f7
Branches
No related tags found
No related merge requests found
...@@ -199,3 +199,11 @@ def get_glob_com_if(): ...@@ -199,3 +199,11 @@ def get_glob_com_if():
global G_COM_IF global G_COM_IF
return G_COM_IF return G_COM_IF
def set_glob_mode(new_mode : ModeList):
global G_MODE_ID
G_MODE_ID = new_mode
def get_glob_mode():
global G_MODE_ID
return G_MODE_ID
...@@ -46,7 +46,7 @@ def run_tmtc_client(use_gui: bool, reduced_printout: bool = False): ...@@ -46,7 +46,7 @@ def run_tmtc_client(use_gui: bool, reduced_printout: bool = False):
if not use_gui: if not use_gui:
# The global variables are set by the argument parser. # The global variables are set by the argument parser.
tmtc_handler = TmTcHandler(g.G_COM_IF, g.G_MODE_ID) tmtc_handler = TmTcHandler(g.get_glob_com_if(), g.get_glob_mode())
tmtc_handler.set_one_shot_or_loop_handling(g.G_LISTENER_AFTER_OP) tmtc_handler.set_one_shot_or_loop_handling(g.G_LISTENER_AFTER_OP)
tmtc_handler.initialize() tmtc_handler.initialize()
tmtc_handler.start() tmtc_handler.start()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment