Skip to content

Commit

Permalink
Reduce the space needed for the RSSI information.
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx authored Jan 6, 2017
1 parent 36b494c commit fc2d8e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Nextion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void CNextion::writeDStarRSSIInt(unsigned char rssi)
{
if (m_rssiCount1 == 0U) {
char text[20U];
::sprintf(text, "t3.txt=\"-%u dBm\"", rssi);
::sprintf(text, "t3.txt=\"-%udBm\"", rssi);
sendCommand(text);
}

Expand Down Expand Up @@ -217,7 +217,7 @@ void CNextion::writeDMRRSSIInt(unsigned int slotNo, unsigned char rssi)
if (slotNo == 1U) {
if (m_rssiCount1 == 0U) {
char text[20U];
::sprintf(text, "t4.txt=\"-%u dBm\"", rssi);
::sprintf(text, "t4.txt=\"-%udBm\"", rssi);
sendCommand(text);
}

Expand All @@ -227,7 +227,7 @@ void CNextion::writeDMRRSSIInt(unsigned int slotNo, unsigned char rssi)
} else {
if (m_rssiCount2 == 0U) {
char text[20U];
::sprintf(text, "t5.txt=\"-%u dBm\"", rssi);
::sprintf(text, "t5.txt=\"-%udBm\"", rssi);
sendCommand(text);
}

Expand Down Expand Up @@ -284,7 +284,7 @@ void CNextion::writeFusionRSSIInt(unsigned char rssi)
{
if (m_rssiCount1 == 0U) {
char text[20U];
::sprintf(text, "t3.txt=\"-%u dBm\"", rssi);
::sprintf(text, "t3.txt=\"-%udBm\"", rssi);
sendCommand(text);
}

Expand Down Expand Up @@ -329,7 +329,7 @@ void CNextion::writeP25RSSIInt(unsigned char rssi)
{
if (m_rssiCount1 == 0U) {
char text[20U];
::sprintf(text, "t2.txt=\"-%u dBm\"", rssi);
::sprintf(text, "t2.txt=\"-%udBm\"", rssi);
sendCommand(text);
}

Expand Down

0 comments on commit fc2d8e5

Please sign in to comment.