From 08d9afc6245fe7e3dbe8e3e377cbd9e699f77f20 Mon Sep 17 00:00:00 2001 From: Jim Morris Date: Mon, 15 Sep 2014 16:05:18 -0700 Subject: [PATCH] add crnl to end of M503 to flush in some cases use puts in usbserial to output the banner --- src/libs/USBDevice/USBSerial/USBSerial.cpp | 2 +- src/modules/communication/GcodeDispatch.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/USBDevice/USBSerial/USBSerial.cpp b/src/libs/USBDevice/USBSerial/USBSerial.cpp index f01c1514..93d664fb 100644 --- a/src/libs/USBDevice/USBSerial/USBSerial.cpp +++ b/src/libs/USBDevice/USBSerial/USBSerial.cpp @@ -268,7 +268,7 @@ void USBSerial::on_main_loop(void *argument) { attached = true; THEKERNEL->streams->append_stream(this); - writeBlock((const uint8_t *) "Smoothie\nok\n", 12); + puts("Smoothie\r\nok\r\n"); } else { diff --git a/src/modules/communication/GcodeDispatch.cpp b/src/modules/communication/GcodeDispatch.cpp index ae6bc84d..5ba6b075 100644 --- a/src/modules/communication/GcodeDispatch.cpp +++ b/src/modules/communication/GcodeDispatch.cpp @@ -166,6 +166,7 @@ try_again: } else { new_message.stream->printf("; No config override\n"); } + gcode->add_nl= true; break; // fall through to process by modules } } -- 2.20.1