Skip to content

Commit

Permalink
Add leading 0 to +
Browse files Browse the repository at this point in the history
  • Loading branch information
F4FXL committed May 17, 2021
1 parent 87a447f commit d7c95f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DStarControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ void CDStarControl::sendAck()
char signalText[10U];
CSMeter::getSignal(m_aveRSSI / m_rssiCount, signal, plus);
if (plus != 0U)
::sprintf(signalText, "S%u+%u", signal, plus);
::sprintf(signalText, "S%u+%02u", signal, plus);
else
::sprintf(signalText, "S%u", signal);

Expand Down Expand Up @@ -1262,7 +1262,7 @@ void CDStarControl::sendError()
char signalText[10U];
CSMeter::getSignal(m_aveRSSI / m_rssiCount, signal, plus);
if (plus != 0U)
::sprintf(signalText, "S%u+%u", signal, plus);
::sprintf(signalText, "S%u+%02u", signal, plus);
else
::sprintf(signalText, "S%u", signal);

Expand Down

0 comments on commit d7c95f0

Please sign in to comment.