mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-12 13:33:06 +01:00
allow 30 xdr mappings, scroll correctly
This commit is contained in:
15
tools/genXdrCfg.sh
Executable file
15
tools/genXdrCfg.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#! /bin/sh
|
||||
i=0
|
||||
[ "$2" != "" ] && i=$2
|
||||
if [ "$1" = "" ] ; then
|
||||
echo "usage: $0 num [start]"
|
||||
exit 1
|
||||
fi
|
||||
num=$1
|
||||
|
||||
while [ $num -gt 0 ]
|
||||
do
|
||||
echo '{"name": "XDR'$i'","label": "XDR'$i'","type": "xdr","default": "", "check": "checkXDR","category":"xdr'$i'"},'
|
||||
num=`expr $num - 1`
|
||||
i=`expr $i + 1`
|
||||
done
|
||||
Reference in New Issue
Block a user