Cleanup M48
This commit is contained in:
parent
97a258b0b0
commit
72c7de3570
@ -2824,7 +2824,7 @@ inline void gcode_M42() {
|
|||||||
inline void gcode_M48() {
|
inline void gcode_M48() {
|
||||||
|
|
||||||
double sum = 0.0, mean = 0.0, sigma = 0.0, sample_set[50];
|
double sum = 0.0, mean = 0.0, sigma = 0.0, sample_set[50];
|
||||||
int verbose_level = 1, j, n_samples = 10, n_legs = 0, engage_probe_for_each_reading = 0;
|
int verbose_level = 1, n_samples = 10, n_legs = 0;
|
||||||
|
|
||||||
if (code_seen('V') || code_seen('v')) {
|
if (code_seen('V') || code_seen('v')) {
|
||||||
verbose_level = code_value();
|
verbose_level = code_value();
|
||||||
@ -2852,8 +2852,7 @@ inline void gcode_M42() {
|
|||||||
Z_start_location = Z_current + Z_RAISE_BEFORE_PROBING,
|
Z_start_location = Z_current + Z_RAISE_BEFORE_PROBING,
|
||||||
ext_position = st_get_position_mm(E_AXIS);
|
ext_position = st_get_position_mm(E_AXIS);
|
||||||
|
|
||||||
if (code_seen('E') || code_seen('e'))
|
bool engage_probe_for_each_reading = code_seen('E') || code_seen('e');
|
||||||
engage_probe_for_each_reading++;
|
|
||||||
|
|
||||||
if (code_seen('X') || code_seen('x')) {
|
if (code_seen('X') || code_seen('x')) {
|
||||||
X_probe_location = code_value() - X_PROBE_OFFSET_FROM_EXTRUDER;
|
X_probe_location = code_value() - X_PROBE_OFFSET_FROM_EXTRUDER;
|
||||||
|
Loading…
Reference in New Issue
Block a user