Skip to content

Commit

Permalink
More fettling for HD44780 RSSI
Browse files Browse the repository at this point in the history
  • Loading branch information
g0wfv committed Jan 7, 2017
1 parent 08970c9 commit 74fcf4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions HD44780.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ void CHD44780::writeDMRRSSIInt(unsigned int slotNo, unsigned char rssi)
if (slotNo == 1U) {
if (m_rssiCount1 == 0U) {
::lcdPosition(m_fd, 0, 3);
::lcdPrintf(m_fd, "%3u dBm", rssi);
::lcdPrintf(m_fd, "-%3udBm", rssi);
}

m_rssiCount1++;
Expand All @@ -628,7 +628,7 @@ void CHD44780::writeDMRRSSIInt(unsigned int slotNo, unsigned char rssi)
} else {
if (m_rssiCount2 == 0U) {
::lcdPosition(m_fd, (m_cols / 2), 3);
::lcdPrintf(m_fd, "%3u dBm", rssi);
::lcdPrintf(m_fd, "-%3udBm", rssi);
}

m_rssiCount2++;
Expand All @@ -653,15 +653,15 @@ void CHD44780::clearDMRInt(unsigned int slotNo)

if (m_rows > 2) { // clear slot 1 RSSI
::lcdPosition(m_fd, 0, 3);
::lcdPrintf(m_fd, "%.*s", m_cols / 2, " ");
::lcdPrintf(m_fd, "%.*s", m_cols / 2, DEADSPACE);
}
} else {
::lcdPosition(m_fd, 0, (m_rows / 2));
::lcdPrintf(m_fd, "2 %.*s", m_cols - 2U, LISTENING);

if (m_rows > 2) { // cleat slot 2 RSSI
::lcdPosition(m_fd, m_cols / 2, 3);
::lcdPrintf(m_fd, "%.*s", m_cols / 2, " ");
::lcdPrintf(m_fd, "%.*s", m_cols / 2, DEADSPACE);
}
}
} else {
Expand Down

0 comments on commit 74fcf4f

Please sign in to comment.