1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-30 23:30:16 +00:00

Merge pull request #2094 from thinkyhead/cherry_picking

Rename process_commands to process_next_command
This commit is contained in:
Scott Lahteine 2015-05-16 21:08:59 -07:00
commit ea3df2b0b3
2 changed files with 6 additions and 5 deletions

View File

@ -113,7 +113,6 @@ FORCE_INLINE void serialprintPGM(const char *str) {
}
void get_command();
void process_commands();
void manage_inactivity(bool ignore_stepper_queue=false);

View File

@ -399,6 +399,8 @@ bool target_direction;
//================================ Functions ================================
//===========================================================================
void process_next_command();
bool setTargetedHotend(int code);
void serial_echopair_P(const char *s_P, float v) { serialprintPGM(s_P); SERIAL_ECHO(v); }
@ -697,17 +699,17 @@ void loop() {
// Write the string from the read buffer to SD
card.write_command(command);
if (card.logging)
process_commands(); // The card is saving because it's logging
process_next_command(); // The card is saving because it's logging
else
SERIAL_PROTOCOLLNPGM(MSG_OK);
}
}
else
process_commands();
process_next_command();
#else
process_commands();
process_next_command();
#endif // SDSUPPORT
@ -5178,7 +5180,7 @@ inline void gcode_T() {
* Process Commands and dispatch them to handlers
* This is called from the main loop()
*/
void process_commands() {
void process_next_command() {
if ((marlin_debug_flags & DEBUG_ECHO)) {
SERIAL_ECHO_START;