diff --git a/SerialPort.cpp b/SerialPort.cpp index db7e1ed..4b64bd0 100644 --- a/SerialPort.cpp +++ b/SerialPort.cpp @@ -22,6 +22,11 @@ #include "Config.h" #include "Globals.h" +#if defined(STM32F4XX) || defined(STM32F4) +#include "GitVersion.h" +#endif + + #include "SerialPort.h" const uint8_t MMDVM_FRAME_START = 0xE0U; @@ -74,8 +79,14 @@ const uint8_t MMDVM_DEBUG5 = 0xF5U; #else #define DESCRIPTION "MMDVM 20170406 (D-Star/DMR/System Fusion/P25/RSSI/CW Id)" #endif + +#if defined(GITVERSION) +#define concat(a, b) a " GitID #"b"" +const char HARDWARE[] = concat(DESCRIPTION, GITVERSION); +#else #define concat(a, b, c) a " (Build: " b " " c ")" const char HARDWARE[] = concat(DESCRIPTION, __TIME__, __DATE__); +#endif const uint8_t PROTOCOL_VERSION = 1U;