Constant Service LED

This commit is contained in:
g0wfv 2018-05-23 17:12:32 +01:00
parent bdd4f395ad
commit 0a89469ffc
2 changed files with 8 additions and 0 deletions

View File

@ -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

4
IO.cpp
View File

@ -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;