mirror of
https://github.com/juribeparada/MMDVM_HS.git
synced 2026-04-06 06:43:38 +00:00
Add Git ID to MMDVM description
This commit is contained in:
parent
d7a40757d5
commit
be8318a66a
2 changed files with 25 additions and 3 deletions
|
|
@ -23,6 +23,10 @@
|
|||
#include "Config.h"
|
||||
#include "Globals.h"
|
||||
|
||||
#if defined(MADEBYMAKEFILE)
|
||||
#include "GitVersion.h"
|
||||
#endif
|
||||
|
||||
#include "SerialPort.h"
|
||||
|
||||
const uint8_t MMDVM_FRAME_START = 0xE0U;
|
||||
|
|
@ -74,9 +78,14 @@ const uint8_t MMDVM_DEBUG5 = 0xF5U;
|
|||
#define DESCRIPTION "MMDVM_HS-ADF7021 20170521 (D-Star/DMR/YSF/P25)"
|
||||
#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;
|
||||
|
||||
CSerialPort::CSerialPort() :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue