File tree 1 file changed +3
-2
lines changed
Marlin/src/gcode/feature/rs485
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ void GcodeSuite::M485() {
83
83
// Read and ignore any packets that may have come in, before we write.
84
84
85
85
while (rs485Packetizer.hasPacket ()) {
86
+ SERIAL_ECHO_START ();
86
87
SERIAL_ECHOPGM (" rs485-unexpected-packet: " );
87
88
write_packet_data ();
88
89
rs485Packetizer.clearPacket ();
@@ -99,9 +100,9 @@ void GcodeSuite::M485() {
99
100
// millis_t endTime = millis();
100
101
// SERIAL_ECHOLNPGM("rs485-time: ", endTime - startTime);
101
102
102
- if (!hasPacket) { SERIAL_ECHOLNPGM (" rs485-reply: TIMEOUT " ); return ; }
103
+ if (!hasPacket) { SERIAL_ECHO_MSG (" rs485-timeout " ); return ; }
103
104
104
- SERIAL_ECHOPGM (" rs485-reply: " );
105
+ SERIAL_ECHO_START (); SERIAL_ECHOPGM (" rs485-reply: " );
105
106
write_packet_data ();
106
107
rs485Packetizer.clearPacket ();
107
108
}
You can’t perform that action at this time.
0 commit comments