|
@@ -399,6 +399,8 @@ bool target_direction;
|
399
|
399
|
//================================ Functions ================================
|
400
|
400
|
//===========================================================================
|
401
|
401
|
|
|
402
|
+void process_next_command();
|
|
403
|
+
|
402
|
404
|
bool setTargetedHotend(int code);
|
403
|
405
|
|
404
|
406
|
void serial_echopair_P(const char *s_P, float v) { serialprintPGM(s_P); SERIAL_ECHO(v); }
|
|
@@ -697,17 +699,17 @@ void loop() {
|
697
|
699
|
// Write the string from the read buffer to SD
|
698
|
700
|
card.write_command(command);
|
699
|
701
|
if (card.logging)
|
700
|
|
- process_commands(); // The card is saving because it's logging
|
|
702
|
+ process_next_command(); // The card is saving because it's logging
|
701
|
703
|
else
|
702
|
704
|
SERIAL_PROTOCOLLNPGM(MSG_OK);
|
703
|
705
|
}
|
704
|
706
|
}
|
705
|
707
|
else
|
706
|
|
- process_commands();
|
|
708
|
+ process_next_command();
|
707
|
709
|
|
708
|
710
|
#else
|
709
|
711
|
|
710
|
|
- process_commands();
|
|
712
|
+ process_next_command();
|
711
|
713
|
|
712
|
714
|
#endif // SDSUPPORT
|
713
|
715
|
|
|
@@ -5178,7 +5180,7 @@ inline void gcode_T() {
|
5178
|
5180
|
* Process Commands and dispatch them to handlers
|
5179
|
5181
|
* This is called from the main loop()
|
5180
|
5182
|
*/
|
5181
|
|
-void process_commands() {
|
|
5183
|
+void process_next_command() {
|
5182
|
5184
|
|
5183
|
5185
|
if ((marlin_debug_flags & DEBUG_ECHO)) {
|
5184
|
5186
|
SERIAL_ECHO_START;
|