Skip to content

Commit

Permalink
Merge pull request #171 from g0wfv/constant_srv_led
Browse files Browse the repository at this point in the history
Constant Service LED
  • Loading branch information
juribeparada committed May 23, 2018
2 parents bdd4f39 + 0a89469 commit eb33bdd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Config.h
Expand Up @@ -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 changes: 4 additions & 0 deletions IO.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit eb33bdd

Please sign in to comment.