Merge pull request #6527 from thinkyhead/rc_cleanups_2

Patch DELTA_HEIGHT, BLTOUCH init
master
Scott Lahteine 8 years ago committed by GitHub
commit 8bd63aafb9

@ -119,6 +119,13 @@
#define Z_HOME_POS (Z_HOME_DIR < 0 ? Z_MIN_POS : Z_MAX_POS) #define Z_HOME_POS (Z_HOME_DIR < 0 ? Z_MIN_POS : Z_MAX_POS)
#endif #endif
/**
* If DELTA_HEIGHT isn't defined use the old setting
*/
#if ENABLED(DELTA) && !defined(DELTA_HEIGHT)
#define DELTA_HEIGHT Z_HOME_POS
#endif
/** /**
* Auto Bed Leveling and Z Probe Repeatability Test * Auto Bed Leveling and Z Probe Repeatability Test
*/ */

@ -2080,7 +2080,7 @@ static void clean_up_after_endstop_or_probe_move() {
#if ENABLED(BLTOUCH_HEATERS_OFF) #if ENABLED(BLTOUCH_HEATERS_OFF)
void set_heaters_for_bltouch(const bool deploy) { void set_heaters_for_bltouch(const bool deploy) {
static int8_t heaters_were_disabled = 0; static bool heaters_were_disabled = false;
static millis_t next_emi_protection; static millis_t next_emi_protection;
static float temps_at_entry[HOTENDS]; static float temps_at_entry[HOTENDS];
@ -2111,6 +2111,7 @@ static void clean_up_after_endstop_or_probe_move() {
thermalManager.setTargetBed(bed_temp_at_entry); thermalManager.setTargetBed(bed_temp_at_entry);
#endif #endif
} }
heaters_were_disabled = deploy;
} }
#endif // BLTOUCH_HEATERS_OFF #endif // BLTOUCH_HEATERS_OFF
@ -12263,9 +12264,10 @@ void setup() {
#endif #endif
#if ENABLED(BLTOUCH) #if ENABLED(BLTOUCH)
bltouch_command(BLTOUCH_RESET); // Just in case the BLTouch is in the error state, try to // Make sure any BLTouch error condition is cleared
set_bltouch_deployed(true); // reset it. Also needs to deploy and stow to clear the bltouch_command(BLTOUCH_RESET);
set_bltouch_deployed(false); // error condition. set_bltouch_deployed(true);
set_bltouch_deployed(false);
#endif #endif
#if ENABLED(EXPERIMENTAL_I2CBUS) && I2C_SLAVE_ADDRESS > 0 #if ENABLED(EXPERIMENTAL_I2CBUS) && I2C_SLAVE_ADDRESS > 0

Loading…
Cancel
Save