Skip to content

Commit

Permalink
Adding quiet option behavior to mode leds
Browse files Browse the repository at this point in the history
  • Loading branch information
juribeparada committed Aug 20, 2017
1 parent 6df168a commit 2af43c2
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 7 additions & 0 deletions IO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions configs/ZUMspot_Libre.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@
// Enable P25 Wide modulation:
// #define ENABLE_P25_WIDE

// Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS

#endif
3 changes: 3 additions & 0 deletions configs/ZUMspot_RPi.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@
// Enable P25 Wide modulation:
// #define ENABLE_P25_WIDE

// Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS

#endif
3 changes: 3 additions & 0 deletions configs/ZUMspot_USB.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@
// Enable P25 Wide modulation:
// #define ENABLE_P25_WIDE

// Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS

#endif
3 changes: 3 additions & 0 deletions configs/ZUMspot_duplex.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@
// Enable P25 Wide modulation:
// #define ENABLE_P25_WIDE

// Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS

#endif

0 comments on commit 2af43c2

Please sign in to comment.