diff --git a/Config.h b/Config.h index df112ef..c0ac7e8 100644 --- a/Config.h +++ b/Config.h @@ -67,8 +67,11 @@ // Disable mode LEDs blink during scan mode: // #define QUIET_MODE_LEDS -// Constant Service LED once repeater is running +// Engage a constant or descreet Service LED mode once repeater is running // #define CONSTANT_SRV_LED +// #define CONSTANT_SRV_LED_INVERTED +// #define DISCREET_SRV_LED +// #define DISCREET_SRV_LED_INVERTED // Use the YSF and P25 LEDs for NXDN // #define USE_ALTERNATE_NXDN_LEDS diff --git a/IO.cpp b/IO.cpp index 9f55a70..0b0d26c 100644 --- a/IO.cpp +++ b/IO.cpp @@ -119,6 +119,20 @@ void CIO::process() #if defined(CONSTANT_SRV_LED) LED_pin(HIGH); +#elif defined(CONSTANT_SRV_LED_INVERTED) + LED_pin(LOW); +#elif defined(DISCREET_SRV_LED) + if (m_ledCount == 10000U) LED_pin(LOW); + if (m_ledCount >= 480000U) { + m_ledCount = 0U; + LED_pin(HIGH); + }; +#elif defined(DISCREET_SRV_LED_INVERTED) + if (m_ledCount == 10000U) LED_pin(HIGH); + if (m_ledCount >= 480000U) { + m_ledCount = 0U; + LED_pin(LOW); + }; #else if (m_ledCount >= 24000U) { m_ledCount = 0U; diff --git a/configs/MMDVM_HS_Dual_Hat-12mhz.h b/configs/MMDVM_HS_Dual_Hat-12mhz.h index 1802fa2..f115691 100644 --- a/configs/MMDVM_HS_Dual_Hat-12mhz.h +++ b/configs/MMDVM_HS_Dual_Hat-12mhz.h @@ -67,8 +67,11 @@ // Disable mode LEDs blink during scan mode: // #define QUIET_MODE_LEDS -// Constant Service LED once repeater is running +// Engage a constant or descreet Service LED mode once repeater is running // #define CONSTANT_SRV_LED +// #define CONSTANT_SRV_LED_INVERTED +// #define DISCREET_SRV_LED +// #define DISCREET_SRV_LED_INVERTED // Use the YSF and P25 LEDs for NXDN // #define USE_ALTERNATE_NXDN_LEDS diff --git a/configs/MMDVM_HS_Dual_Hat.h b/configs/MMDVM_HS_Dual_Hat.h index b182724..1305fbf 100644 --- a/configs/MMDVM_HS_Dual_Hat.h +++ b/configs/MMDVM_HS_Dual_Hat.h @@ -67,8 +67,11 @@ // Disable mode LEDs blink during scan mode: // #define QUIET_MODE_LEDS -// Constant Service LED once repeater is running +// Engage a constant or descreet Service LED mode once repeater is running // #define CONSTANT_SRV_LED +// #define CONSTANT_SRV_LED_INVERTED +// #define DISCREET_SRV_LED +// #define DISCREET_SRV_LED_INVERTED // Use the YSF and P25 LEDs for NXDN // #define USE_ALTERNATE_NXDN_LEDS diff --git a/configs/MMDVM_HS_Hat-12mhz.h b/configs/MMDVM_HS_Hat-12mhz.h index 8a11a90..e220f9d 100644 --- a/configs/MMDVM_HS_Hat-12mhz.h +++ b/configs/MMDVM_HS_Hat-12mhz.h @@ -67,8 +67,11 @@ // Disable mode LEDs blink during scan mode: // #define QUIET_MODE_LEDS -// Constant Service LED once repeater is running +// Engage a constant or descreet Service LED mode once repeater is running // #define CONSTANT_SRV_LED +// #define CONSTANT_SRV_LED_INVERTED +// #define DISCREET_SRV_LED +// #define DISCREET_SRV_LED_INVERTED // Use the YSF and P25 LEDs for NXDN // #define USE_ALTERNATE_NXDN_LEDS diff --git a/configs/MMDVM_HS_Hat.h b/configs/MMDVM_HS_Hat.h index b4be985..6e190e3 100644 --- a/configs/MMDVM_HS_Hat.h +++ b/configs/MMDVM_HS_Hat.h @@ -67,8 +67,11 @@ // Disable mode LEDs blink during scan mode: // #define QUIET_MODE_LEDS -// Constant Service LED once repeater is running +// Engage a constant or descreet Service LED mode once repeater is running // #define CONSTANT_SRV_LED +// #define CONSTANT_SRV_LED_INVERTED +// #define DISCREET_SRV_LED +// #define DISCREET_SRV_LED_INVERTED // Use the YSF and P25 LEDs for NXDN // #define USE_ALTERNATE_NXDN_LEDS diff --git a/configs/NanoDV.h b/configs/NanoDV.h index 9d90a4b..9dfe6ff 100644 --- a/configs/NanoDV.h +++ b/configs/NanoDV.h @@ -67,8 +67,11 @@ // Disable mode LEDs blink during scan mode: #define QUIET_MODE_LEDS -// Constant Service LED once repeater is running +// Engage a constant or descreet Service LED mode once repeater is running // #define CONSTANT_SRV_LED +// #define CONSTANT_SRV_LED_INVERTED +// #define DISCREET_SRV_LED +// #define DISCREET_SRV_LED_INVERTED // Use the YSF and P25 LEDs for NXDN // #define USE_ALTERNATE_NXDN_LEDS diff --git a/configs/Nano_hotSPOT.h b/configs/Nano_hotSPOT.h index 2ef0670..d0d1021 100644 --- a/configs/Nano_hotSPOT.h +++ b/configs/Nano_hotSPOT.h @@ -67,8 +67,11 @@ // Disable mode LEDs blink during scan mode: // #define QUIET_MODE_LEDS -// Constant Service LED once repeater is running +// Engage a constant or descreet Service LED mode once repeater is running // #define CONSTANT_SRV_LED +// #define CONSTANT_SRV_LED_INVERTED +// #define DISCREET_SRV_LED +// #define DISCREET_SRV_LED_INVERTED // Use the YSF and P25 LEDs for NXDN // #define USE_ALTERNATE_NXDN_LEDS diff --git a/configs/ZUMspot_Libre.h b/configs/ZUMspot_Libre.h index df112ef..c0ac7e8 100644 --- a/configs/ZUMspot_Libre.h +++ b/configs/ZUMspot_Libre.h @@ -67,8 +67,11 @@ // Disable mode LEDs blink during scan mode: // #define QUIET_MODE_LEDS -// Constant Service LED once repeater is running +// Engage a constant or descreet Service LED mode once repeater is running // #define CONSTANT_SRV_LED +// #define CONSTANT_SRV_LED_INVERTED +// #define DISCREET_SRV_LED +// #define DISCREET_SRV_LED_INVERTED // Use the YSF and P25 LEDs for NXDN // #define USE_ALTERNATE_NXDN_LEDS diff --git a/configs/ZUMspot_RPi.h b/configs/ZUMspot_RPi.h index 76c371a..f38b6cc 100644 --- a/configs/ZUMspot_RPi.h +++ b/configs/ZUMspot_RPi.h @@ -67,8 +67,11 @@ // Disable mode LEDs blink during scan mode: // #define QUIET_MODE_LEDS -// Constant Service LED once repeater is running +// Engage a constant or descreet Service LED mode once repeater is running // #define CONSTANT_SRV_LED +// #define CONSTANT_SRV_LED_INVERTED +// #define DISCREET_SRV_LED +// #define DISCREET_SRV_LED_INVERTED // Use the YSF and P25 LEDs for NXDN // #define USE_ALTERNATE_NXDN_LEDS diff --git a/configs/ZUMspot_USB.h b/configs/ZUMspot_USB.h index fa4d85d..78fbadc 100644 --- a/configs/ZUMspot_USB.h +++ b/configs/ZUMspot_USB.h @@ -67,8 +67,11 @@ // Disable mode LEDs blink during scan mode: // #define QUIET_MODE_LEDS -// Constant Service LED once repeater is running +// Engage a constant or descreet Service LED mode once repeater is running // #define CONSTANT_SRV_LED +// #define CONSTANT_SRV_LED_INVERTED +// #define DISCREET_SRV_LED +// #define DISCREET_SRV_LED_INVERTED // Use the YSF and P25 LEDs for NXDN // #define USE_ALTERNATE_NXDN_LEDS diff --git a/configs/ZUMspot_duplex.h b/configs/ZUMspot_duplex.h index d4bece9..31b58b2 100644 --- a/configs/ZUMspot_duplex.h +++ b/configs/ZUMspot_duplex.h @@ -67,8 +67,11 @@ // Disable mode LEDs blink during scan mode: // #define QUIET_MODE_LEDS -// Constant Service LED once repeater is running +// Engage a constant or descreet Service LED mode once repeater is running // #define CONSTANT_SRV_LED +// #define CONSTANT_SRV_LED_INVERTED +// #define DISCREET_SRV_LED +// #define DISCREET_SRV_LED_INVERTED // Use the YSF and P25 LEDs for NXDN // #define USE_ALTERNATE_NXDN_LEDS diff --git a/configs/generic_duplex_gpio.h b/configs/generic_duplex_gpio.h index acea3b0..214b15b 100644 --- a/configs/generic_duplex_gpio.h +++ b/configs/generic_duplex_gpio.h @@ -67,8 +67,11 @@ // Disable mode LEDs blink during scan mode: // #define QUIET_MODE_LEDS -// Constant Service LED once repeater is running +// Engage a constant or descreet Service LED mode once repeater is running // #define CONSTANT_SRV_LED +// #define CONSTANT_SRV_LED_INVERTED +// #define DISCREET_SRV_LED +// #define DISCREET_SRV_LED_INVERTED // Use the YSF and P25 LEDs for NXDN // #define USE_ALTERNATE_NXDN_LEDS diff --git a/configs/generic_gpio.h b/configs/generic_gpio.h index 2b307f4..d03a361 100644 --- a/configs/generic_gpio.h +++ b/configs/generic_gpio.h @@ -67,8 +67,11 @@ // Disable mode LEDs blink during scan mode: // #define QUIET_MODE_LEDS -// Constant Service LED once repeater is running +// Engage a constant or descreet Service LED mode once repeater is running // #define CONSTANT_SRV_LED +// #define CONSTANT_SRV_LED_INVERTED +// #define DISCREET_SRV_LED +// #define DISCREET_SRV_LED_INVERTED // Use the YSF and P25 LEDs for NXDN // #define USE_ALTERNATE_NXDN_LEDS diff --git a/version.h b/version.h index 854259d..d0bbbfc 100644 --- a/version.h +++ b/version.h @@ -24,8 +24,8 @@ #define VER_MAJOR "1" #define VER_MINOR "4" -#define VER_REV "1" -#define VERSION_DATE "20180709" +#define VER_REV "2" +#define VERSION_DATE "20180715" #if defined(ZUMSPOT_ADF7021) #define BOARD_INFO "ZUMspot"