From 5adbe6d0d533004d85e819cd77d63ca27328e139 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 6 Jun 2018 14:05:36 +0200 Subject: [PATCH] Add TCXO frequency to modem description --- SerialPort.cpp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/SerialPort.cpp b/SerialPort.cpp index 9aa0954..564df2d 100644 --- a/SerialPort.cpp +++ b/SerialPort.cpp @@ -76,14 +76,24 @@ const uint8_t MMDVM_DEBUG3 = 0xF3U; const uint8_t MMDVM_DEBUG4 = 0xF4U; const uint8_t MMDVM_DEBUG5 = 0xF5U; +#if EXTERNAL_OSC == 12000000 +#define TCXO "12.0000" +#elif EXTERNAL_OSC == 12288000 +#define TCXO "12.2880" +#elif EXTERNAL_OSC == 14400000 +#define TCXO "14.4000" +#elif EXTERNAL_OSC == 19200000 +#define TCXO "19.2000" +#endif + #define DESCRIPTION "MMDVM 20180327 (D-Star/DMR/System Fusion/P25/NXDN)" #if defined(GITVERSION) -#define concat(a, b) a " GitID #" b "" -const char HARDWARE[] = concat(DESCRIPTION, GITVERSION); +#define concat(a, b, c) a " " b "MHz GitID #" c "" +const char HARDWARE[] = concat(DESCRIPTION, TCXO, GITVERSION); #else -#define concat(a, b, c) a " (Build: " b " " c ")" -const char HARDWARE[] = concat(DESCRIPTION, __TIME__, __DATE__); +#define concat(a, b, c, d) a " " b "MHz (Build: " c " " d ")" +const char HARDWARE[] = concat(DESCRIPTION, TCXO, __TIME__, __DATE__); #endif const uint8_t PROTOCOL_VERSION = 1U;