#feature Autogenerating version number
This commit is contained in:
parent
1ed6701063
commit
5cf9c4e94a
3 changed files with 7 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ board = ATmega88P
|
|||
framework = arduino
|
||||
lib_deps = Arduino
|
||||
|
||||
build_flags =
|
||||
build_flags = !python version_git.py
|
||||
; --verbose
|
||||
|
||||
upload_protocol = arduino
|
||||
|
|
@ -58,7 +58,7 @@ board = ATmega328PB
|
|||
framework = arduino
|
||||
lib_deps = Arduino
|
||||
|
||||
build_flags =
|
||||
build_flags = !python version_git.py
|
||||
; --verbose
|
||||
|
||||
upload_protocol = arduino
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ update the voltMeterConstant variable in pP_config.h with the correct value
|
|||
|
||||
------------------------------------------------------------*/
|
||||
|
||||
#define PP_VERSION "2.2.1_882a87"
|
||||
// #define PP_VERSION "2.2.1_882a87"
|
||||
|
||||
/* Debug output verbose mode will continuously output sensor readings
|
||||
rather than waiting for user input */
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
import subprocess
|
||||
|
||||
major_version = "2.2.1"
|
||||
print("-DPP_VERSION=\\\"" + major_version + "_" + subprocess.check_output(["git", "rev-parse", "HEAD"])[0:6] + "\\\"")
|
||||
Loading…
Reference in a new issue