Merge pull request #66 from m1geo/master

Add compilation timestamp to hardware description varible sent in ::getVersion()
This commit is contained in:
Jonathan Naylor 2017-03-10 17:17:31 +00:00 committed by GitHub
commit 785cb5584b
1 changed files with 4 additions and 2 deletions

View File

@ -72,10 +72,12 @@ const uint8_t MMDVM_DEBUG5 = 0xF5U;
#if defined(EXTERNAL_OSC) #if defined(EXTERNAL_OSC)
const uint8_t HARDWARE[] = "MMDVM 20170303 TCXO (D-Star/DMR/System Fusion/P25/RSSI/CW Id)"; #define DESCRIPTION "MMDVM 20170303 TCXO (D-Star/DMR/System Fusion/P25/RSSI/CW Id)"
#else #else
const uint8_t HARDWARE[] = "MMDVM 20170303 (D-Star/DMR/System Fusion/P25/RSSI/CW Id)"; #define DESCRIPTION "MMDVM 20170303 (D-Star/DMR/System Fusion/P25/RSSI/CW Id)"
#endif #endif
#define concat(a, b, c) a " (Build: " b " " c ")"
const char HARDWARE[] = concat(DESCRIPTION, __TIME__, __DATE__);
const uint8_t PROTOCOL_VERSION = 1U; const uint8_t PROTOCOL_VERSION = 1U;