For backwards compatibility, G26 now calls M999

master
Marcio Teixeira 7 years ago
parent e726900146
commit 891b29783b

@ -115,6 +115,18 @@
#define LULZBOT_EEPROM_SETTINGS #define LULZBOT_EEPROM_SETTINGS
#define LULZBOT_EMERGENCY_PARSER #define LULZBOT_EMERGENCY_PARSER
// Prior branches of the LulzBot firmware used G26
// to reset a probe failed condition. Marlin upstrem
// now redefines that for unified bed leveling. The
// following maps G26 to M999 for equivalent behavior,
// so long as UBL is disabled.
#define LULZBOT_G26_BACKWARDS_COMPATIBILITY
// The following should be kept more or less:
#define LULZBOT_G26_RESET_ACTION \
Running = true; \
lcd_reset_alert_level();
// Temperature settings // Temperature settings
#define LULZBOT_TEMP_SENSOR_0 5 #define LULZBOT_TEMP_SENSOR_0 5
@ -357,7 +369,7 @@
// In the experimental Gladiola_GLCD, the encoder direction is reversed. // In the experimental Gladiola_GLCD, the encoder direction is reversed.
#define LULZBOT_REVERSE_ENCODER_DIRECTION #define LULZBOT_REVERSE_ENCODER_DIRECTION
#endif #endif
/ * Marlin shows three extruders on a dual: /* Marlin shows three extruders on a dual:
* Extruder - The active nozzle (varies) * Extruder - The active nozzle (varies)
* Extruder 1 - The primary extruder * Extruder 1 - The primary extruder
* Extruder 2 - The secondary extruder * Extruder 2 - The secondary extruder

@ -10521,6 +10521,10 @@ void process_next_command() {
case 26: // G26: Mesh Validation Pattern generation case 26: // G26: Mesh Validation Pattern generation
gcode_G26(); gcode_G26();
break; break;
#elif defined(LULZBOT_G26_BACKWARDS_COMPATIBILITY)
case 26: // G26: LulzBot clear probe fail
LULZBOT_G26_RESET_ACTION;
break;
#endif // AUTO_BED_LEVELING_UBL #endif // AUTO_BED_LEVELING_UBL
#if ENABLED(NOZZLE_PARK_FEATURE) #if ENABLED(NOZZLE_PARK_FEATURE)

Loading…
Cancel
Save