Permalink
Browse files

Merge pull request #171 from g0wfv/constant_srv_led

Constant Service LED
  • Loading branch information...
juribeparada committed May 23, 2018
2 parents bdd4f39 + 0a89469 commit eb33bdde5a7ba16b6999e40163369f68a841221e
Showing with 8 additions and 0 deletions.
  1. +4 −0 Config.h
  2. +4 −0 IO.cpp
View
@@ -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
View
4 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;

0 comments on commit eb33bdd

Please sign in to comment.