diff options
author | khilman <khilman@users.noreply.github.com> | 2018-12-07 09:58:28 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-07 09:58:28 -0800 |
commit | dbb6b647fc421fb9c70620e2fe725cc5546c0702 (patch) | |
tree | f844d38573c17658ae7a0655326ac5baa11f33e5 | |
parent | 19fe02f7a341e302e3ad560fcb4cc872f2201a5c (diff) | |
parent | 4f73f1ec41424069ef068aa8c39169f166c80812 (diff) |
Merge pull request #78 from montjoie/misc
lavalab-gen.py: ease to use alternate uart than ser2net
-rwxr-xr-x | lavalab-gen.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |