From 917b303a0f948720c6162835bc721db70fa14b29 Mon Sep 17 00:00:00 2001 From: George Smart Date: Thu, 9 Mar 2017 23:32:46 +0000 Subject: [PATCH] Added compilation timestamp to hardware description varible sent in ::getVersion() --- SerialPort.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SerialPort.cpp b/SerialPort.cpp index b3a4654..bd93720 100644 --- a/SerialPort.cpp +++ b/SerialPort.cpp @@ -72,10 +72,12 @@ const uint8_t MMDVM_DEBUG5 = 0xF5U; #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 -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 +#define concat(a, b, c) a " (Build: " b " " c ")" +const char HARDWARE[] = concat(DESCRIPTION, __TIME__, __DATE__); const uint8_t PROTOCOL_VERSION = 1U;