Skip to content

Commit

Permalink
Add G26 to the process_next_command() function and include a gcode_g2…
Browse files Browse the repository at this point in the history
…6() function

The actual execution of G26 is done inside get_serial_commands(), this commit is just for completeness.
  • Loading branch information
scalez committed Apr 18, 2016
1 parent f9da0b5 commit 2fa5a8b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2552,6 +2552,16 @@ inline void gcode_G4() {

#endif //FWRETRACT

/**
* G26: Allow G-codes to enter the buffer again after a PROBE_FAIL_PANIC occurs during a G29
*/
#if ENABLED(PROBE_FAIL_PANIC)
inline void gcode_G26() {
LCD_MESSAGEPGM(WELCOME_MSG);
probe_fail = false;
}
#endif

/**
* G28: Home all axes according to settings
*
Expand Down Expand Up @@ -6598,6 +6608,12 @@ void process_next_command() {

#endif //FWRETRACT

#if ENABLED(PROBE_FAIL_PANIC)
case 26: // G26: Allow G-codes to enter the buffer again after a PROBE_FAIL_PANIC occurs during a G29
gcode_G26();
break;
#endif

case 28: // G28: Home all axes, one at a time
gcode_G28();
break;
Expand Down

0 comments on commit 2fa5a8b

Please sign in to comment.