Use DStar and DMR LEDs for POCSAG mode

until a separate POCSAG LED is available on newer boards
This commit is contained in:
phl0 2018-07-04 10:12:21 +02:00
parent dc9b8c28f6
commit 602d773377
No known key found for this signature in database
GPG key ID: 48EA1E640798CA9A
2 changed files with 8 additions and 2 deletions

View file

@ -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)

View file

@ -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)