File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Marlin/src/gcode/feature/rs485 Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +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_ECHOPGM (" rs485-unexpected-packet: " );
86
+ SERIAL_ECHO_START (); SERIAL_ECHOPGM (" rs485-unexpected-packet: " );
87
87
write_packet_data ();
88
88
rs485Packetizer.clearPacket ();
89
89
}
@@ -97,9 +97,11 @@ void GcodeSuite::M485() {
97
97
// millis_t startTime = millis();
98
98
bool hasPacket = rs485Packetizer.hasPacket ();
99
99
// millis_t endTime = millis();
100
- // SERIAL_ECHOLNPGM("rs485-time: ", endTime - startTime);
100
+ // SERIAL_ECHO_START(); SERIAL_ECHOLNPGM("rs485-time: ", endTime - startTime);
101
101
102
- if (!hasPacket) { SERIAL_ECHOLNPGM (" rs485-reply: TIMEOUT" ); return ; }
102
+ SERIAL_ECHO_START ();
103
+
104
+ if (!hasPacket) { SERIAL_ECHOLNPGM (" rs485-timeout" ); return ; }
103
105
104
106
SERIAL_ECHOPGM (" rs485-reply: " );
105
107
write_packet_data ();
You can’t perform that action at this time.
0 commit comments