Skip to content

Commit

Permalink
Compile for ffat partition.
Browse files Browse the repository at this point in the history
Show branch names in branches other than master.
  • Loading branch information
CelliesProjects committed Apr 20, 2019
1 parent b30371d commit ac7d74e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions compile.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
echo Compiling aquacontrol32 version: $(git describe --tags --always)
echo We are on branch: $(git branch | grep \* | cut -d ' ' -f2)
echo Branch: $(git branch | grep \* | cut -d ' ' -f2)
echo
echo "const char * sketchVersion = \"$(git describe --tags --always)\";" > gitTagVersion.h
~/arduino-1.8.9/arduino --board espressif:esp32:mhetesp32minikit --verify test.ino --pref custom_DebugLevel=esp32_none --port /dev/ttyUSB0 --pref upload.speed=921600 --pref build.path=temp --preserve-temp-files
if [ $(git branch | grep \* | cut -d ' ' -f2) == "master" ]
then
echo "const char * sketchVersion = \"$(git describe --tags --always)\";" > gitTagVersion.h
else
echo "const char * sketchVersion = \"$(git describe --tags --always):$(git branch | grep \* | cut -d ' ' -f2)\";" > gitTagVersion.h
fi
echo $(git describe --tags --always):$(git branch | grep \* | cut -d ' ' -f2)
~/arduino-1.8.9/arduino --board espressif:esp32:mhetesp32minikit --verify test.ino --pref custom_DebugLevel=esp32_none --port /dev/ttyUSB0 --pref upload.speed=921600 --pref build.path=temp --preserve-temp-files --pref build.partition=default_ffat
rm gitTagVersion.h
3 changes: 2 additions & 1 deletion flash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ then
else
echo "const char * sketchVersion = \"$(git describe --tags --always):$(git branch | grep \* | cut -d ' ' -f2)\";" > gitTagVersion.h
fi
~/arduino-1.8.9/arduino --board espressif:esp32:mhetesp32minikit --upload test.ino --pref custom_DebugLevel=esp32_none --port /dev/ttyUSB0 --pref upload.speed=921600 --preserve-temp-files --pref build.path=temp --pref build.flash_freq=80m
echo $(git describe --tags --always):$(git branch | grep \* | cut -d ' ' -f2)
~/arduino-1.8.9/arduino --board espressif:esp32:mhetesp32minikit --upload test.ino --pref custom_DebugLevel=esp32_none --port /dev/ttyUSB0 --pref upload.speed=921600 --preserve-temp-files --pref build.path=temp --pref build.partition=default_ffat --pref build.flash_freq=80m
rm gitTagVersion.h

0 comments on commit ac7d74e

Please sign in to comment.