From 9154f95c8a69bf3c416567e09dd86cb4b9ba6876 Mon Sep 17 00:00:00 2001 From: N4IRS Date: Mon, 14 Nov 2016 19:25:38 -0500 Subject: [PATCH] Simplify LED logic --- LCDproc.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/LCDproc.cpp b/LCDproc.cpp index 3fe12ec..7dc5bf0 100644 --- a/LCDproc.cpp +++ b/LCDproc.cpp @@ -20,7 +20,8 @@ * Some LCD displays include additional LEDs for status. * If they exist, the LDCproc server will use the output command. * If the LEDs do not exist, the command is ignored. -* to control these LEDs Below are the values for the Crystalfontz CFA-635 +* to control these LEDs Below are the values for the Crystalfontz CFA-635. +* N4IRS * LED 1 (DMR) * Green 1 0000 0001 @@ -276,7 +277,6 @@ void CLCDproc::writeDMRInt(unsigned int slotNo, const std::string& src, bool gro socketPrintf(m_socketfd, "widget_set DMR Slot1 1 %u %u %u h 3 \"Listening\"", m_rows / 2, m_cols - 1, m_rows / 2); socketPrintf(m_socketfd, "widget_set DMR Slot2 1 %u %u %u h 3 \"\"", m_rows / 2 + 1, m_cols - 1, m_rows / 2 + 1); -// socketPrintf(m_socketfd, "output 16"); // Set LED1 color red } } @@ -296,7 +296,6 @@ void CLCDproc::writeDMRInt(unsigned int slotNo, const std::string& src, bool gro } else { socketPrintf(m_socketfd, "widget_set DMR Slot1 1 2 %u 2 h 3 \"%s >\"", m_cols - 1, src.c_str()); socketPrintf(m_socketfd, "widget_set DMR Slot2 1 3 %u 3 h 3 \"%s%s\"", m_cols - 1, group ? "TG" : "", dst.c_str()); -// socketPrintf(m_socketfd, "output 16"); // Set LED1 color red } } socketPrintf(m_socketfd, "output 16"); // Set LED1 color red Modem @@ -315,7 +314,6 @@ void CLCDproc::clearDMRInt(unsigned int slotNo) } else { socketPrintf(m_socketfd, "widget_set DMR Slot1 1 2 15 2 h 3 Listening"); socketPrintf(m_socketfd, "widget_set DMR Slot2 1 3 15 3 h 3 \"\""); -// socketPrintf(m_socketfd, "output 1"); // Set LED1 color green } socketPrintf(m_socketfd, "output 1"); // Set LED1 color green Modem }