Skip to content

Commit b62640f

Browse files
committed
Make pymodbus as default modbus backend
1 parent 37d2c4e commit b62640f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/launcher

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
#!/bin/bash
22

33
echo $0
4+
if [[ $1 == "mtk" ]]
5+
then
6+
BACKEND=""
7+
else
8+
BACKEND="-p"
9+
fi
410
root_dir="$(cd $(dirname $0)/../; pwd)"
511
simu_dir="$root_dir/modbus_simulator"
612
export PYTHONPATH=$root_dir
7-
launch_cmd="$simu_dir/main.py -p"
13+
launch_cmd="$simu_dir/main.py $BACKEND"
814
python $launch_cmd

0 commit comments

Comments
 (0)