File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1209,6 +1209,11 @@ bool ESP3DCommands::dispatch(ESP3DMessage *msg) {
12091209#if COMMUNICATION_PROTOCOL == SOCKET_SERIAL
12101210 case ESP3DClientType::echo_serial:
12111211 MYSERIAL1.write (msg->data , msg->size );
1212+ if (msg->type == ESP3DMessageType::unique || msg->type == ESP3DMessageType::tail) {
1213+ if (msg->data [msg->size -1 ]!=' \n ' ){
1214+ MYSERIAL1.write (' \n ' );
1215+ }
1216+ }
12121217 ESP3DMessageManager::deleteMsg (msg);
12131218 break ;
12141219#endif // COMMUNICATION_PROTOCOL == SOCKET_SERIAL
@@ -1513,4 +1518,4 @@ bool ESP3DCommands::dispatch(ESP3DMessage *msg) {
15131518 ESP3DMessageManager::deleteMsg (msg);
15141519 }
15151520 return sendOk;
1516- }
1521+ }
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ void Serial_2_Socket::handle_flush() {
167167void Serial_2_Socket::flush (void ) {
168168 if (_TXbufferSize > 0 && _started && !_paused) {
169169 ESP3DMessage *msg = ESP3DMessageManager::newMsg (
170- ESP3DClientType::socket_serial, esp3d_commands. getOutputClient () ,
170+ ESP3DClientType::socket_serial, ESP3DClientType::all_clients ,
171171 _TXbuffer, _TXbufferSize, _auth);
172172 // dispatch command
173173 if (msg) {
You can’t perform that action at this time.
0 commit comments