From fda1e3dcf42d9abc656caaeb80f26e68784a2c7f Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 1 Sep 2020 09:57:49 +0100 Subject: [PATCH] More LED fixes. --- IO.cpp | 8 +++++++- SerialPort.cpp | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/IO.cpp b/IO.cpp index 89a3050..ab003f2 100644 --- a/IO.cpp +++ b/IO.cpp @@ -133,7 +133,7 @@ void CIO::selfTest() { bool ledValue = false; - for (uint8_t i = 0; i < 6; i++) { + for (uint8_t i = 0U; i < 6U; i++) { ledValue = !ledValue; // We exclude PTT to avoid trigger the transmitter @@ -144,9 +144,15 @@ void CIO::selfTest() setDMRInt(ledValue); setYSFInt(ledValue); setP25Int(ledValue); +#if !defined(USE_ALTERNATE_NXDN_LEDS) setNXDNInt(ledValue); +#endif +#if !defined(USE_ALTERNATE_POCSAG_LEDS) setPOCSAGInt(ledValue); +#endif +#if !defined(USE_ALTERNATE_FM_LEDS) setFMInt(ledValue); +#endif #endif delayInt(250); } diff --git a/SerialPort.cpp b/SerialPort.cpp index 35c28d7..17cb476 100644 --- a/SerialPort.cpp +++ b/SerialPort.cpp @@ -103,7 +103,7 @@ const uint8_t MMDVM_DEBUG5 = 0xF5U; #define HW_TYPE "MMDVM" #endif -#define DESCRIPTION "20200831 (D-Star/DMR/System Fusion/P25/NXDN/POCSAG/FM)" +#define DESCRIPTION "20200901 (D-Star/DMR/System Fusion/P25/NXDN/POCSAG/FM)" #if defined(GITVERSION) #define concat(h, a, b, c) h " " a " " b " GitID #" c ""