From 602d773377094648805e48835b71ebe126afd86a Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 4 Jul 2018 10:12:21 +0200 Subject: [PATCH] Use DStar and DMR LEDs for POCSAG mode until a separate POCSAG LED is available on newer boards --- IOArduino.cpp | 5 ++++- IOSTM.cpp | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/IOArduino.cpp b/IOArduino.cpp index e88aa37..1887951 100644 --- a/IOArduino.cpp +++ b/IOArduino.cpp @@ -318,7 +318,10 @@ void CIO::NXDN_pin(bool on) void CIO::POCSAG_pin(bool on) { - // TODO: add a LED pin for POCSAG mode + // Use D-Star and DMR LED to indicate POCSAG mode + // TODO: add a separate LED pin for POCSAG mode + digitalWrite(PIN_DSTAR_LED, on ? HIGH : LOW); + digitalWrite(PIN_DMR_LED, on ? HIGH : LOW); } void CIO::PTT_pin(bool on) diff --git a/IOSTM.cpp b/IOSTM.cpp index 7d894d6..962fe29 100644 --- a/IOSTM.cpp +++ b/IOSTM.cpp @@ -649,7 +649,10 @@ void CIO::NXDN_pin(bool on) void CIO::POCSAG_pin(bool on) { - // TODO: add a LED pin for POCSAG mode + // Use D-Star and DMR LED to indicate POCSAG mode + // TODO: add a separate LED pin for POCSAG mode + GPIO_WriteBit(PORT_DSTAR_LED, PIN_DSTAR_LED, on ? Bit_SET : Bit_RESET); + GPIO_WriteBit(PORT_DMR_LED, PIN_DMR_LED, on ? Bit_SET : Bit_RESET); } void CIO::PTT_pin(bool on)