More documentation added for the tools
This commit is contained in:
parent
8c18722ded
commit
8c454f0a9a
@ -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
|
||||||
|
@ -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>]"
|
||||||
|
Loading…
Reference in New Issue
Block a user