mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-20 22:05:08 +00:00
Constant Service LED
This commit is contained in:
parent
bdd4f395ad
commit
0a89469ffc
2 changed files with 8 additions and 0 deletions
4
Config.h
4
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
|
||||
|
|
|
|||
4
IO.cpp
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue