mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-01-05 08:00:02 +01:00
Small code cleanup.
This commit is contained in:
parent
1740624a31
commit
76428bb0cb
|
|
@ -644,15 +644,13 @@ void CWiresX::sendAllReply()
|
|||
for (unsigned int i = 0U; i < 10U; i++)
|
||||
data[i + 12U] = m_node.at(i);
|
||||
|
||||
data[22U] = '0';
|
||||
|
||||
unsigned int total = curr.size();
|
||||
if (total > 999U) total = 999U;
|
||||
|
||||
unsigned int n = curr.size() - m_start;
|
||||
if (n > 20U) n = 20U;
|
||||
|
||||
::sprintf((char*)(data + 23U), "%02u%03u", n, total);
|
||||
::sprintf((char*)(data + 22U), "%03u%03u", n, total);
|
||||
|
||||
data[28U] = 0x0DU;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue