mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
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:
parent
78e0327dd3
commit
7e23ebf90f
2 changed files with 21 additions and 19 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue