From 2fd19397463f2bdc8c50a06ab7c8581f7bc96f0b Mon Sep 17 00:00:00 2001 From: Teo-CD Date: Thu, 7 Mar 2024 21:49:14 +0000 Subject: [PATCH] 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. --- src/Com.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Com.cpp b/src/Com.cpp index 8c45eaa..86e238c 100644 --- a/src/Com.cpp +++ b/src/Com.cpp @@ -20,6 +20,7 @@ namespace Com { usb_rawhid_send(buffer, 0); #else Serial.write((const char*)buffer); + Serial.write('\n'); #endif /* Clear the buffer. */ memset(buffer, 0, sizeof(buffer));