1
0
Fork 0

Com: Append new line when flusing serial

Our HID implementation sends fixed-length reports, that will be parsed
by the receiving software.
Serial outputs are more geared towards debugging, thus splitting the
messages sent is much more usable.
This commit is contained in:
Teo-CD 2024-03-07 21:49:14 +00:00
parent ade4c19d55
commit 2fd1939746

View file

@ -20,6 +20,7 @@ namespace Com {
usb_rawhid_send(buffer, 0); usb_rawhid_send(buffer, 0);
#else #else
Serial.write((const char*)buffer); Serial.write((const char*)buffer);
Serial.write('\n');
#endif #endif
/* Clear the buffer. */ /* Clear the buffer. */
memset(buffer, 0, sizeof(buffer)); memset(buffer, 0, sizeof(buffer));