Skip to content

Commit 2609e6f

Browse files
committed
read arg in read_highstate.py
1 parent fa4cbef commit 2609e6f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

example/high_level/read_highstate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def HighStateHandler(msg: SportModeState_):
1515

1616

1717
if __name__ == "__main__":
18-
ChannelFactoryInitialize(0, "enp3s0")
18+
# sys.argv[1]: name of the network interface
19+
ChannelFactoryInitialize(0, sys.argv[1])
1920
sub = ChannelSubscriber("rt/sportmodestate", SportModeState_)
2021
sub.Init(HighStateHandler, 10)
2122

0 commit comments

Comments
 (0)