From 440aa514698abe4232fd265bab1079ac01273291 Mon Sep 17 00:00:00 2001 From: Cellie Date: Thu, 17 May 2018 12:32:32 +0200 Subject: [PATCH] Show which version is compiled and flashed. --- compile.sh | 2 ++ flash.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/compile.sh b/compile.sh index 5039452..558d725 100755 --- a/compile.sh +++ b/compile.sh @@ -1,3 +1,5 @@ +echo Compiling aquacontrol32 version: $(git describe --tags --always) +echo echo "const char * sketchVersion = \"$(git describe --tags --always)\";" > gitTagVersion.h ~/arduino-1.8.5/arduino --verify test.ino rm gitTagVersion.h diff --git a/flash.sh b/flash.sh index a824a36..d7d790c 100755 --- a/flash.sh +++ b/flash.sh @@ -1,3 +1,5 @@ +echo Compiling and flashing aquacontrol32 version: $(git describe --tags --always) +echo echo "const char * sketchVersion = \"$(git describe --tags --always)\";" > gitTagVersion.h ~/arduino-1.8.5/arduino --upload test.ino --pref custom_DebugLevel=esp32_none --port /dev/ttyUSB0 rm gitTagVersion.h