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) {
1209
1209
#if COMMUNICATION_PROTOCOL == SOCKET_SERIAL
1210
1210
case ESP3DClientType::echo_serial:
1211
1211
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
+ }
1212
1217
ESP3DMessageManager::deleteMsg (msg);
1213
1218
break ;
1214
1219
#endif // COMMUNICATION_PROTOCOL == SOCKET_SERIAL
@@ -1513,4 +1518,4 @@ bool ESP3DCommands::dispatch(ESP3DMessage *msg) {
1513
1518
ESP3DMessageManager::deleteMsg (msg);
1514
1519
}
1515
1520
return sendOk;
1516
- }
1521
+ }
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ void Serial_2_Socket::handle_flush() {
167
167
void Serial_2_Socket::flush (void ) {
168
168
if (_TXbufferSize > 0 && _started && !_paused) {
169
169
ESP3DMessage *msg = ESP3DMessageManager::newMsg (
170
- ESP3DClientType::socket_serial, esp3d_commands. getOutputClient () ,
170
+ ESP3DClientType::socket_serial, ESP3DClientType::all_clients ,
171
171
_TXbuffer, _TXbufferSize, _auth);
172
172
// dispatch command
173
173
if (msg) {
You can’t perform that action at this time.
0 commit comments