revert non working bed leveling disable more tool change

This commit is contained in:
InsanityAutomation
2019-09-06 21:44:59 -04:00
parent f603a152c7
commit 093d3cb32b
2 changed files with 9 additions and 5 deletions
+4 -4
View File
@@ -15,8 +15,8 @@
//#define MachineCR20Pro
//#define MachineCR10
//#define MachineCR10S
#define MachineCR10SPro // Graphics LCD Requires soldering R64 and R66
//#define MachineCRX
//#define MachineCR10SPro // Graphics LCD Requires soldering R64 and R66
#define MachineCRX
//#define MachineCR10Max
//#define MachineS4
//#define MachineS5
@@ -102,7 +102,7 @@
*/
//#define ABL_EZABL // TH3D EZABL or Any NO Sensor
//#define ABL_NCSW //Creality ABL or Any NC Sensor
//#define ABL_BLTOUCH
#define ABL_BLTOUCH
//#define CREALITY_ABL_MOUNT //Using creality ABL mount
//#define E3D_DUALFAN_MOUNT // Using HD Modular mount as above with 2 5015 blowers and sensor on the right
@@ -114,7 +114,7 @@
Melzi board users may only select ABL_BI for bilinear leveling
*/
//#define ABL_BI
//#define ABL_UBL
#define ABL_UBL
//#define POWER_LOSS_RECOVERY //Large and does not fit with any other features on Melzi, or UBL on Atmega
/*
+5 -1
View File
@@ -854,7 +854,8 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
#if HAS_LEVELING
// Set current position to the physical position
TEMPORARY_BED_LEVELING_STATE(false);
const bool leveling_was_enabled = planner.leveling_active;
set_bed_leveling_enabled(false);
#endif
if (new_tool != old_tool) {
@@ -1035,6 +1036,9 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
} // (new_tool != old_tool)
planner.synchronize();
#if HAS_LEVELING
set_bed_leveling_enabled(leveling_was_enabled);
#endif
#if ENABLED(EXT_SOLENOID) && DISABLED(PARKING_EXTRUDER)
disable_all_solenoids();