Adding quiet option behavior to mode leds

This commit is contained in:
Andy CA6JAU 2017-08-20 20:51:33 -03:00
parent 6df168a17d
commit 2af43c2592
6 changed files with 22 additions and 0 deletions

View file

@ -56,4 +56,7 @@
// Enable P25 Wide modulation:
// #define ENABLE_P25_WIDE
// Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS
#endif

7
IO.cpp
View file

@ -145,7 +145,9 @@ void CIO::process()
m_modeTimerCnt = 0;
if( (m_modemState == STATE_IDLE) && (m_scanPauseCnt == 0) && m_scanEnable) {
m_scanPos = (m_scanPos + 1) % m_TotalModes;
#if !defined(QUIET_MODE_LEDS)
setMode(m_Modes[m_scanPos]);
#endif
io.ifConf(m_Modes[m_scanPos], true);
}
}
@ -293,6 +295,11 @@ void CIO::setDecode(bool dcd)
m_dcd = dcd;
}
void CIO::setLoDevYSF(bool on)
{
m_LoDevYSF = on;
}
void CIO::resetWatchdog()
{
m_watchdog = 0U;

View file

@ -56,4 +56,7 @@
// Enable P25 Wide modulation:
// #define ENABLE_P25_WIDE
// Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS
#endif

View file

@ -56,4 +56,7 @@
// Enable P25 Wide modulation:
// #define ENABLE_P25_WIDE
// Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS
#endif

View file

@ -56,4 +56,7 @@
// Enable P25 Wide modulation:
// #define ENABLE_P25_WIDE
// Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS
#endif

View file

@ -56,4 +56,7 @@
// Enable P25 Wide modulation:
// #define ENABLE_P25_WIDE
// Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS
#endif