cangrow.sh add help text

This commit is contained in:
Marcus 2024-06-16 00:04:28 +02:00
parent 1d667bd665
commit bacb48a918

View file

@ -72,7 +72,7 @@ case $1 in
;;
b|build)
check_acli
echo "building firmware $VER $BUILD, target dir: $(pwd)/build/"
echo ":: Building firmware $VER $BUILD, target dir: $(pwd)/build/"
test -d build || mkdir build
echo "/* CanGrow_Version.h gets generated from cangrow.sh */
@ -84,17 +84,17 @@ const char* CanGrowBuild = \"${BUILD}\";
;;
u|upload)
check_acli
echo "uploading to $TTY"
echo ":: Uploading to $TTY"
${ACLI_CMD} --no-color compile -v -b esp8266:esp8266:d1_mini_clone -u -p $TTY "Arduino/CanGrow/CanGrow.ino"
;;
w|webupload)
echo "uploading to $IP"
echo ":: Uploading to $IP"
curl -v http://$IP/system/applyUpdate -X POST -H 'Content-Type: multipart/form-data' -F "file=@$(pwd)/build/CanGrow.ino.bin"
echo
;;
m|mon|monitor)
check_acli
echo "open monitor $TTY"
echo ":: Open serial monitor $TTY"
${ACLI_CMD} monitor -c baudrate=115200 -p $TTY
;;
*)