Skip to content

Commit c1167d3

Browse files
authored
Merge pull request #166 from th3dstudio/2.0.x
2.0.x
2 parents 27f26f7 + 2b84b75 commit c1167d3

File tree

4 files changed

+33
-12
lines changed

4 files changed

+33
-12
lines changed

Board_Configs/TH3D_EZBoardLite/Firmware/Marlin/Configuration.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,19 @@
207207
// EXTRUDER SETTINGS -------------------------------
208208
// Use to set custom esteps and/or reverse your E Motor direction if you are installing an extruder that needs the direction reversed.
209209
// If you reversed the wiring on your E motor already (like the Bondtech Guide says to do) then you do not need to reverse it in the firmware here.
210-
210+
//
211+
// Example EStep Values For Common Extuders:
212+
// TH3D Aluminum Extruder --- 95 ESteps
213+
// LGX/LGX Lite/NG Extruder - 400 ESteps
214+
// TH3D Tough Extruder V2 --- 407 ESteps
215+
// TH3D Tough Extruder V1 --- 410 ESteps
216+
// Bondtech BMG Extruder ---- 415 ESteps
217+
// Creality Sprite Extruder - 425 ESteps
218+
// LDO Orbiter/Sherpa Mini -- 690 ESteps
219+
//
211220
// If you want to change the Esteps for your printer you can uncomment the below line and set CUSTOM_ESTEPS_VALUE to what you want - USE WHOLE NUMBERS ONLY
212221
// This option sets the esteps from the CUSTOM_ESTEPS_VALUE line below.
213222
// If you need to reverse the e motor direction also enabled the REVERSE_E_MOTOR_DIRECTION option.
214-
// Example EStep Values: TH3D Aluminum Extruder - 95 ESteps, TH3D Tough Extruder - 410 ESteps, BMG Extruder - 415 ESteps
215-
// When installing a Tough Extruder or E3D Titan or Bondtech that is Geared you likely need to enable the REVERSE_E_MOTOR_DIRECTION option
216223
//#define CUSTOM_ESTEPS
217224
#define CUSTOM_ESTEPS_VALUE 410
218225
//#define REVERSE_E_MOTOR_DIRECTION

Board_Configs/TH3D_EZBoardV2/Firmware/Marlin/Configuration.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,19 @@
235235
// EXTRUDER SETTINGS -------------------------------
236236
// Use to set custom esteps and/or reverse your E Motor direction if you are installing an extruder that needs the direction reversed.
237237
// If you reversed the wiring on your E motor already (like the Bondtech Guide says to do) then you do not need to reverse it in the firmware here.
238-
238+
//
239+
// Example EStep Values For Common Extuders:
240+
// TH3D Aluminum Extruder --- 95 ESteps
241+
// LGX/LGX Lite/NG Extruder - 400 ESteps
242+
// TH3D Tough Extruder V2 --- 407 ESteps
243+
// TH3D Tough Extruder V1 --- 410 ESteps
244+
// Bondtech BMG Extruder ---- 415 ESteps
245+
// Creality Sprite Extruder - 425 ESteps
246+
// LDO Orbiter/Sherpa Mini -- 690 ESteps
247+
//
239248
// If you want to change the Esteps for your printer you can uncomment the below line and set CUSTOM_ESTEPS_VALUE to what you want - USE WHOLE NUMBERS ONLY
240249
// This option sets the esteps from the CUSTOM_ESTEPS_VALUE line below.
241250
// If you need to reverse the e motor direction also enabled the REVERSE_E_MOTOR_DIRECTION option.
242-
// Example EStep Values: TH3D Aluminum Extruder - 95 ESteps, TH3D Tough Extruder - 410 ESteps, BMG Extruder - 415 ESteps
243-
// When installing a Tough Extruder or E3D Titan or Bondtech that is Geared you likely need to enable the REVERSE_E_MOTOR_DIRECTION option
244251
//#define CUSTOM_ESTEPS
245252
#define CUSTOM_ESTEPS_VALUE 410
246253
//#define REVERSE_E_MOTOR_DIRECTION

Firmware/Marlin/Configuration_backend.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//======================= DO NOT MODIFY THIS FILE ===========================
77
//===========================================================================
88

9-
#define UNIFIED_VERSION "TH3D UFW 2.75b"
9+
#define UNIFIED_VERSION "TH3D UFW 2.76"
1010

1111
/**
1212
* ABL Probe Settings
@@ -260,7 +260,9 @@
260260
#define Z_PROBE_OFFSET_RANGE_MAX 1
261261

262262
#define Z_MIN_PROBE_REPEATABILITY_TEST
263-
#define Z_AFTER_HOMING 5
263+
#if NONE(BLTOUCH)
264+
#define Z_AFTER_HOMING 5
265+
#endif
264266
#define Z_PROBE_LOW_POINT -10
265267

266268
#if NONE(BLTOUCH)
@@ -561,7 +563,7 @@
561563
#endif
562564

563565
#if ENABLED(BLTOUCH)
564-
#define Z_CLEARANCE_DEPLOY_PROBE 8
566+
#define Z_CLEARANCE_DEPLOY_PROBE 5
565567
#define Z_CLEARANCE_BETWEEN_PROBES 5
566568
#define Z_CLEARANCE_MULTI_PROBE 5
567569
#define Z_PROBE_FEEDRATE_SLOW (Z_PROBE_FEEDRATE_FAST / 2)

Firmware/Marlin/src/feature/bltouch.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,14 @@ bool BLTouch::od_5v_mode; // Initialized by settings.load, 0 = Open Drai
4242
#include "../core/debug_out.h"
4343

4444
bool BLTouch::command(const BLTCommand cmd, const millis_t &ms) {
45-
if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("BLTouch Command :", cmd);
46-
servo[Z_PROBE_SERVO_NR].move(cmd);
47-
safe_delay(_MAX(ms, (uint32_t)BLTOUCH_DELAY)); // BLTOUCH_DELAY is also the *minimum* delay
45+
const BLTCommand current = servo[Z_PROBE_SERVO_NR].read();
46+
if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("BLTouch from ", current, " to ", cmd);
47+
// If the new command is the same, skip it (and the delay).
48+
// The previous write should've already delayed to detect the alarm.
49+
if (cmd != current) {
50+
servo[Z_PROBE_SERVO_NR].move(cmd);
51+
safe_delay(_MAX(ms, (uint32_t)BLTOUCH_DELAY)); // BLTOUCH_DELAY is also the *minimum* delay
52+
}
4853
return triggered();
4954
}
5055

0 commit comments

Comments
 (0)