diff --git a/tools/Readme.md b/tools/Readme.md index 2b6725d..57da26a 100644 --- a/tools/Readme.md +++ b/tools/Readme.md @@ -1,2 +1,4 @@ -# Source: +# luatool.py +**Not** supported with python 3.x +## Source: https://github.com/4refr0nt/luatool/tree/master/luatool diff --git a/tools/initialFlash.sh b/tools/initialFlash.sh index a6270ad..b1d5efc 100755 --- a/tools/initialFlash.sh +++ b/tools/initialFlash.sh @@ -5,6 +5,13 @@ LUATOOL=./tools/luatool.py DEVICE=$1 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 if [ ! -c $DEVICE ]; then @@ -12,7 +19,6 @@ if [ ! -c $DEVICE ]; then exit 1 fi - if [ $# -eq 0 ]; then echo "" echo "e.g. usage $0 []"