Still more LCD RSSI display fettling

LCDproc: rethink of how RSSI is displayed for DMR to match HD44780 version (all modes 4-line screens only).  Once it's working correctly, display on smaller screens can be revisited as scrolling should make display of RSSI feasible on smaller LCDs driven with LCDproc as opposed to directly by the host.

HD44780: Clean up and make displayed values uniform by specifying number of characters in value and inserting a missing minus for P25!
This commit is contained in:
Tony Corbett G0WFV
2017-01-08 09:37:17 +00:00
parent 78e0327dd3
commit 7e23ebf90f
2 changed files with 21 additions and 19 deletions

View File

@@ -443,7 +443,7 @@ void CHD44780::writeDStarRSSIInt(unsigned char rssi)
{
if (m_rssiCount1 == 0U && m_rows > 2) {
::lcdPosition(m_fd, 0, 3);
::lcdPrintf(m_fd, "-%u dBm", rssi);
::lcdPrintf(m_fd, "-%3udBm", rssi);
}
m_rssiCount1++;
@@ -743,7 +743,7 @@ void CHD44780::writeFusionRSSIInt(unsigned char rssi)
{
if (m_rssiCount1 == 0U && m_rows > 2) {
::lcdPosition(m_fd, 0, 3);
::lcdPrintf(m_fd, "-%u dBm", rssi);
::lcdPrintf(m_fd, "-%3udBm", rssi);
}
m_rssiCount1++;
@@ -847,7 +847,7 @@ void CHD44780::writeP25RSSIInt(unsigned char rssi)
{
if (m_rssiCount1 == 0U && m_rows > 2) {
::lcdPosition(m_fd, 0, 3);
::lcdPrintf(m_fd, "%u", rssi);
::lcdPrintf(m_fd, "-%3udBm", rssi);
}
m_rssiCount1++;