diff --git a/.gitignore b/.gitignore index 5dac9f5..2764386 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ .piolibdeps .clang_complete .gcc-flags.json +CMakeListsPrivate.txt diff --git a/lighthub/main.cpp b/lighthub/main.cpp index 3c0410c..b53987d 100644 --- a/lighthub/main.cpp +++ b/lighthub/main.cpp @@ -133,7 +133,7 @@ EthernetClient ethClient; #define QUOTE(x) Q(x) #ifndef PIO_SRC_REV -#define PIO_SRC_REV_BRANCH v0.97 +#define PIO_SRC_REV v0.97 #endif diff --git a/platformio.ini b/platformio.ini index 14635e5..cf83094 100644 --- a/platformio.ini +++ b/platformio.ini @@ -18,8 +18,7 @@ platform = atmelsam framework = arduino board = due lib_ldf_mode = chain+ -build_flags = !echo -n "-DPIO_SRC_REV="$(git branch) -;echo "-DPIO_SRC_REV_COMMIT="$( git rev-parse --short HEAD) +build_flags = !echo -n "-DPIO_SRC_REV="$(git log --oneline -1) lib_deps = https://github.com/sebnil/DueFlashStorage https://github.com/livello/Arduino-Temperature-Control-Library.git#1306c49