From 4f73f1ec41424069ef068aa8c39169f166c80812 Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Fri, 7 Dec 2018 10:09:59 +0100 Subject: lavalab-gen.py: ease to use alternate uart than ser2net When someone want to use screen/conmux for a board, the current situation imply to adds use_ser2net = False. This patchs remove this need. --- lavalab-gen.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lavalab-gen.py b/lavalab-gen.py index f52805e..1d91f23 100755 --- a/lavalab-gen.py +++ b/lavalab-gen.py @@ -465,7 +465,7 @@ def main(): if not "bind_dev" in slave: dc_devices.append("/dev/%s:/dev/%s" % (board_name, board_name)) use_conmux = False - use_ser2net = True + use_ser2net = False use_screen = False if "use_screen" in uart: use_screen = uart["use_screen"] @@ -476,6 +476,8 @@ def main(): if (use_conmux and use_ser2net) or (use_conmux and use_screen) or (use_screen and use_ser2net): print("ERROR: Only one uart handler must be configured") sys.exit(1) + if not use_conmux and not use_screen and not use_ser2net: + use_ser2net = True if use_conmux: conmuxline = template_conmux.substitute(board=board_name, baud=baud) device_line += template_device_conmux.substitute(board=board_name) -- cgit 1.2.3-korg