From 0a89469ffcec3d3232812aae103e9101854eccb4 Mon Sep 17 00:00:00 2001 From: g0wfv Date: Wed, 23 May 2018 17:12:32 +0100 Subject: [PATCH] Constant Service LED --- Config.h | 4 ++++ IO.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Config.h b/Config.h index 1de81a0f..c8e78a11 100644 --- a/Config.h +++ b/Config.h @@ -69,4 +69,8 @@ // To reduce CPU load, you can remove the DC blocker by commenting out the next line #define USE_DCBLOCKER +// Constant Service LED once repeater is running +// Do not use if employing an external hardware watchdog +// #define CONSTANT_SRV_LED + #endif diff --git a/IO.cpp b/IO.cpp index 46390908..12608179 100644 --- a/IO.cpp +++ b/IO.cpp @@ -255,11 +255,15 @@ void CIO::process() m_watchdog = 0U; } +#if defined(CONSTANT_SRV_LED) + setLEDInt(true); +#else if (m_ledCount >= 24000U) { m_ledCount = 0U; m_ledValue = !m_ledValue; setLEDInt(m_ledValue); } +#endif } else { if (m_ledCount >= 240000U) { m_ledCount = 0U;