diff --git a/Arduino/CanGrow/cangrow.sh b/Arduino/CanGrow/cangrow.sh index 5516010..78f8313 100755 --- a/Arduino/CanGrow/cangrow.sh +++ b/Arduino/CanGrow/cangrow.sh @@ -30,14 +30,6 @@ function check_acli() { fi } -function version_header() { - echo "/* CanGrow_Version.h gets generated from cangrow.sh */ - -const char* CanGrowVer = \"${VER}\"; -const char* CanGrowBuild = \"${BUILD}\"; -" > include/CanGrow_Version.h -} - test -z $1 && help case $1 in @@ -99,7 +91,7 @@ case $1 in b|build) check_acli echo ":: Building firmware $VER $BUILD, target dir: $(pwd)/build/" - #version_header + test -d build || mkdir build @@ -117,7 +109,7 @@ case $1 in u|upload) check_acli echo ":: Build and upload firmware $VER $BUILD to $TTY" - #version_header + test -d build || mkdir build # esp8266 and esp32 compiler have to use different compile flags for VER and BUILD