mirror of https://github.com/g4klx/MMDVM.git
Include GitID of Modem firmware
This commit is contained in:
parent
61a86b7f06
commit
53f51820fa
|
@ -22,6 +22,11 @@
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
|
|
||||||
|
#if defined(STM32F4XX) || defined(STM32F4)
|
||||||
|
#include "GitVersion.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "SerialPort.h"
|
#include "SerialPort.h"
|
||||||
|
|
||||||
const uint8_t MMDVM_FRAME_START = 0xE0U;
|
const uint8_t MMDVM_FRAME_START = 0xE0U;
|
||||||
|
@ -74,8 +79,14 @@ const uint8_t MMDVM_DEBUG5 = 0xF5U;
|
||||||
#else
|
#else
|
||||||
#define DESCRIPTION "MMDVM 20170406 (D-Star/DMR/System Fusion/P25/RSSI/CW Id)"
|
#define DESCRIPTION "MMDVM 20170406 (D-Star/DMR/System Fusion/P25/RSSI/CW Id)"
|
||||||
#endif
|
#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 ")"
|
#define concat(a, b, c) a " (Build: " b " " c ")"
|
||||||
const char HARDWARE[] = concat(DESCRIPTION, __TIME__, __DATE__);
|
const char HARDWARE[] = concat(DESCRIPTION, __TIME__, __DATE__);
|
||||||
|
#endif
|
||||||
|
|
||||||
const uint8_t PROTOCOL_VERSION = 1U;
|
const uint8_t PROTOCOL_VERSION = 1U;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue