[CODE] add build info (git commit) to info line
This commit is contained in:
parent
c142d68876
commit
dfd592fc37
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -6,3 +6,7 @@ components/
|
||||||
# KiCAD EDA
|
# KiCAD EDA
|
||||||
*.bak
|
*.bak
|
||||||
*.kicad_pcb-bak
|
*.kicad_pcb-bak
|
||||||
|
|
||||||
|
# VS Code
|
||||||
|
.vscode/arduino.json
|
||||||
|
.vscode/c_cpp_properties.json
|
||||||
|
|
|
@ -3,3 +3,6 @@
|
||||||
#
|
#
|
||||||
# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
|
# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
|
||||||
|
|
||||||
|
PROJ_GIT_VER := $(shell git describe --always --tags --dirty)
|
||||||
|
|
||||||
|
CPPFLAGS += -D PROJ_VER=\"$(PROJ_GIT_VER)\"
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef BOARD
|
#ifndef BOARD
|
||||||
#define BOARD 0 /* IMPORTANT: select one of the BOARD_* types */
|
#define BOARD 4 /* IMPORTANT: select one of the BOARD_* types */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DB_HOSTNAME "ursaminor.fra80"
|
#define DB_HOSTNAME "ursaminor.fra80"
|
||||||
|
@ -176,12 +176,14 @@ extern "C" void app_main() {
|
||||||
delay(100);
|
delay(100);
|
||||||
Serial.println("");
|
Serial.println("");
|
||||||
|
|
||||||
Serial.print("[INFO ] Node ");
|
Serial.print("[INFO ] Type ");
|
||||||
|
Serial.print(BOARD);
|
||||||
|
Serial.print(", Node: ");
|
||||||
Serial.print(loggerId);
|
Serial.print(loggerId);
|
||||||
Serial.print(", Name: ");
|
Serial.print(" (");
|
||||||
Serial.print(loggerName);
|
Serial.print(loggerName);
|
||||||
Serial.print(", BoardType: ");
|
Serial.print("), Build: ");
|
||||||
Serial.println(BOARD);
|
Serial.println(PROJ_VER);
|
||||||
#endif
|
#endif
|
||||||
#ifdef PRINT_DEBUG
|
#ifdef PRINT_DEBUG
|
||||||
printWakeupReason();
|
printWakeupReason();
|
||||||
|
|
Loading…
Reference in a new issue