1
0
Fork 0

Small code cleanup.

ycs232-kbc
Jonathan Naylor 8 years ago
parent 1740624a31
commit 76428bb0cb

@ -644,15 +644,13 @@ void CWiresX::sendAllReply()
for (unsigned int i = 0U; i < 10U; i++) for (unsigned int i = 0U; i < 10U; i++)
data[i + 12U] = m_node.at(i); data[i + 12U] = m_node.at(i);
data[22U] = '0';
unsigned int total = curr.size(); unsigned int total = curr.size();
if (total > 999U) total = 999U; if (total > 999U) total = 999U;
unsigned int n = curr.size() - m_start; unsigned int n = curr.size() - m_start;
if (n > 20U) n = 20U; if (n > 20U) n = 20U;
::sprintf((char*)(data + 23U), "%02u%03u", n, total); ::sprintf((char*)(data + 22U), "%03u%03u", n, total);
data[28U] = 0x0DU; data[28U] = 0x0DU;

Loading…
Cancel
Save