[2.0.x] Macro G-codes (#9365)

This commit is contained in:
revilor
2018-11-09 12:25:08 +01:00
committed by Scott Lahteine
parent ccdbf20f60
commit b60abc7c37
67 changed files with 806 additions and 5 deletions

View File

@ -1691,6 +1691,18 @@
//#define VARIABLE_G0_FEEDRATE // The G0 feedrate is set by F in G0 motion mode
#endif
/**
* G-code Macros
*
* Add G-codes M810-M819 to define and run G-code macros.
* Macros are not saved to EEPROM.
*/
//#define GCODE_MACROS
#if ENABLED(GCODE_MACROS)
#define GCODE_MACROS_SLOTS 5 // Up to 10 may be used
#define GCODE_MACROS_SLOT_SIZE 50 // Maximum length of a single macro
#endif
/**
* User-defined menu items that execute custom GCode
*/