From 8c454f0a9ae100e458d14d881b88f08930f925c5 Mon Sep 17 00:00:00 2001 From: Ollo Date: Fri, 15 Jan 2021 17:45:37 +0100 Subject: [PATCH] More documentation added for the tools --- tools/Readme.md | 4 +++- tools/initialFlash.sh | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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 []"