Fix the Wires-X data collector and other fixes.

This commit is contained in:
Jonathan Naylor 2016-06-13 20:54:39 +01:00
parent 340eab64a6
commit 5e6b6a4061
4 changed files with 64 additions and 57 deletions

View file

@ -114,7 +114,7 @@ void CNetwork::clock(unsigned int ms)
// Handle the status command
if (::memcmp(buffer, "YSFS", 4U) == 0) {
unsigned char status[50U];
::sprintf((char*)status, "YSFS%05u%16.16s%14.14s%03u", 1U, "Parrot", "Parrot", 0U);
::sprintf((char*)status, "YSFS%05u%-16.16s%-14.14s%03u", 1U, "Parrot", "Parrot", 0U);
m_socket.write(status, 42U, address, port);
return;
}