From c09eb4d870c37643ca6c99ceaea940a818578a0e Mon Sep 17 00:00:00 2001 From: livello Date: Thu, 15 Mar 2018 04:31:30 +0300 Subject: [PATCH] commit and branch into version number --- .gitignore | 1 + lighthub/main.cpp | 2 +- platformio.ini | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) 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