|
|
@ -117,20 +117,7 @@ void GcodeSuite::dwell(millis_t time) {
|
|
|
|
// Placeholders for non-migrated codes
|
|
|
|
// Placeholders for non-migrated codes
|
|
|
|
//
|
|
|
|
//
|
|
|
|
extern void gcode_M18_M84();
|
|
|
|
extern void gcode_M18_M84();
|
|
|
|
extern void gcode_M20();
|
|
|
|
|
|
|
|
extern void gcode_M21();
|
|
|
|
|
|
|
|
extern void gcode_M22();
|
|
|
|
|
|
|
|
extern void gcode_M23();
|
|
|
|
|
|
|
|
extern void gcode_M25();
|
|
|
|
|
|
|
|
extern void gcode_M26();
|
|
|
|
|
|
|
|
extern void gcode_M27();
|
|
|
|
|
|
|
|
extern void gcode_M28();
|
|
|
|
|
|
|
|
extern void gcode_M29();
|
|
|
|
|
|
|
|
extern void gcode_M30();
|
|
|
|
|
|
|
|
extern void gcode_M31();
|
|
|
|
extern void gcode_M31();
|
|
|
|
extern void gcode_M32();
|
|
|
|
|
|
|
|
extern void gcode_M33();
|
|
|
|
|
|
|
|
extern void gcode_M34();
|
|
|
|
|
|
|
|
extern void gcode_M42();
|
|
|
|
extern void gcode_M42();
|
|
|
|
extern void gcode_M43();
|
|
|
|
extern void gcode_M43();
|
|
|
|
extern void gcode_M48();
|
|
|
|
extern void gcode_M48();
|
|
|
@ -160,7 +147,6 @@ extern void gcode_M118();
|
|
|
|
extern void gcode_M119();
|
|
|
|
extern void gcode_M119();
|
|
|
|
extern void gcode_M120();
|
|
|
|
extern void gcode_M120();
|
|
|
|
extern void gcode_M121();
|
|
|
|
extern void gcode_M121();
|
|
|
|
extern void gcode_M125();
|
|
|
|
|
|
|
|
extern void gcode_M126();
|
|
|
|
extern void gcode_M126();
|
|
|
|
extern void gcode_M127();
|
|
|
|
extern void gcode_M127();
|
|
|
|
extern void gcode_M128();
|
|
|
|
extern void gcode_M128();
|
|
|
@ -225,7 +211,6 @@ extern void gcode_M907();
|
|
|
|
extern void gcode_M908();
|
|
|
|
extern void gcode_M908();
|
|
|
|
extern void gcode_M909();
|
|
|
|
extern void gcode_M909();
|
|
|
|
extern void gcode_M910();
|
|
|
|
extern void gcode_M910();
|
|
|
|
extern void gcode_M928();
|
|
|
|
|
|
|
|
extern void gcode_M999();
|
|
|
|
extern void gcode_M999();
|
|
|
|
extern void gcode_T(uint8_t tmp_extruder);
|
|
|
|
extern void gcode_T(uint8_t tmp_extruder);
|
|
|
|
|
|
|
|
|
|
|
@ -423,43 +408,28 @@ void GcodeSuite::process_next_command() {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(SDSUPPORT)
|
|
|
|
#if ENABLED(SDSUPPORT)
|
|
|
|
case 20: // M20: list SD card
|
|
|
|
case 20: M20(); break; // M20: list SD card
|
|
|
|
gcode_M20(); break;
|
|
|
|
case 21: M21(); break; // M21: init SD card
|
|
|
|
case 21: // M21: init SD card
|
|
|
|
case 22: M22(); break; // M22: release SD card
|
|
|
|
gcode_M21(); break;
|
|
|
|
case 23: M23(); break; // M23: Select file
|
|
|
|
case 22: // M22: release SD card
|
|
|
|
case 24: M24(); break; // M24: Start SD print
|
|
|
|
gcode_M22(); break;
|
|
|
|
case 25: M25(); break; // M25: Pause SD print
|
|
|
|
case 23: // M23: Select file
|
|
|
|
case 26: M26(); break; // M26: Set SD index
|
|
|
|
gcode_M23(); break;
|
|
|
|
case 27: M27(); break; // M27: Get SD status
|
|
|
|
case 24: // M24: Start SD print
|
|
|
|
case 28: M28(); break; // M28: Start SD write
|
|
|
|
M24(); break;
|
|
|
|
case 29: M29(); break; // M29: Stop SD write
|
|
|
|
case 25: // M25: Pause SD print
|
|
|
|
case 30: M30(); break; // M30 <filename> Delete File
|
|
|
|
gcode_M25(); break;
|
|
|
|
case 32: M32(); break; // M32: Select file and start SD print
|
|
|
|
case 26: // M26: Set SD index
|
|
|
|
|
|
|
|
gcode_M26(); break;
|
|
|
|
|
|
|
|
case 27: // M27: Get SD status
|
|
|
|
|
|
|
|
gcode_M27(); break;
|
|
|
|
|
|
|
|
case 28: // M28: Start SD write
|
|
|
|
|
|
|
|
gcode_M28(); break;
|
|
|
|
|
|
|
|
case 29: // M29: Stop SD write
|
|
|
|
|
|
|
|
gcode_M29(); break;
|
|
|
|
|
|
|
|
case 30: // M30 <filename> Delete File
|
|
|
|
|
|
|
|
gcode_M30(); break;
|
|
|
|
|
|
|
|
case 32: // M32: Select file and start SD print
|
|
|
|
|
|
|
|
gcode_M32(); break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(LONG_FILENAME_HOST_SUPPORT)
|
|
|
|
#if ENABLED(LONG_FILENAME_HOST_SUPPORT)
|
|
|
|
case 33: // M33: Get the long full path to a file or folder
|
|
|
|
case 33: M33(); break; // M33: Get the long full path to a file or folder
|
|
|
|
gcode_M33(); break;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(SDCARD_SORT_ALPHA) && ENABLED(SDSORT_GCODE)
|
|
|
|
#if ENABLED(SDCARD_SORT_ALPHA) && ENABLED(SDSORT_GCODE)
|
|
|
|
case 34: // M34: Set SD card sorting options
|
|
|
|
case 34: M34(); break; // M34: Set SD card sorting options
|
|
|
|
gcode_M34(); break;
|
|
|
|
#endif
|
|
|
|
#endif // SDCARD_SORT_ALPHA && SDSORT_GCODE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 928: // M928: Start SD write
|
|
|
|
case 928: M928(); break; // M928: Start SD write
|
|
|
|
gcode_M928(); break;
|
|
|
|
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
#endif // SDSUPPORT
|
|
|
|
|
|
|
|
|
|
|
|
case 31: // M31: Report time since the start of SD print or last M109
|
|
|
|
case 31: // M31: Report time since the start of SD print or last M109
|
|
|
|