More documentation added for the tools

This commit is contained in:
Ollo 2021-01-15 17:45:37 +01:00
parent 8c18722ded
commit 8c454f0a9a
2 changed files with 10 additions and 2 deletions

View File

@ -1,2 +1,4 @@
# Source: # luatool.py
**Not** supported with python 3.x
## Source:
https://github.com/4refr0nt/luatool/tree/master/luatool https://github.com/4refr0nt/luatool/tree/master/luatool

View File

@ -5,6 +5,13 @@ LUATOOL=./tools/luatool.py
DEVICE=$1 DEVICE=$1
BAUD=115200 BAUD=115200
# check environment
if [ ! -f $LUATOOL ]; then
echo "$LUATOOL not found"
echo "is the command prompt at the same level as the tools folder ?"
exit 1
fi
# check the serial connection # check the serial connection
if [ ! -c $DEVICE ]; then if [ ! -c $DEVICE ]; then
@ -12,7 +19,6 @@ if [ ! -c $DEVICE ]; then
exit 1 exit 1
fi fi
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
echo "" echo ""
echo "e.g. usage $0 <device> [<files to upoad>]" echo "e.g. usage $0 <device> [<files to upoad>]"