|
@@ -2824,7 +2824,7 @@ inline void gcode_M42() {
|
2824
|
2824
|
inline void gcode_M48() {
|
2825
|
2825
|
|
2826
|
2826
|
double sum = 0.0, mean = 0.0, sigma = 0.0, sample_set[50];
|
2827
|
|
- int verbose_level = 1, j, n_samples = 10, n_legs = 0, engage_probe_for_each_reading = 0;
|
|
2827
|
+ int verbose_level = 1, n_samples = 10, n_legs = 0;
|
2828
|
2828
|
|
2829
|
2829
|
if (code_seen('V') || code_seen('v')) {
|
2830
|
2830
|
verbose_level = code_value();
|
|
@@ -2852,8 +2852,7 @@ inline void gcode_M42() {
|
2852
|
2852
|
Z_start_location = Z_current + Z_RAISE_BEFORE_PROBING,
|
2853
|
2853
|
ext_position = st_get_position_mm(E_AXIS);
|
2854
|
2854
|
|
2855
|
|
- if (code_seen('E') || code_seen('e'))
|
2856
|
|
- engage_probe_for_each_reading++;
|
|
2855
|
+ bool engage_probe_for_each_reading = code_seen('E') || code_seen('e');
|
2857
|
2856
|
|
2858
|
2857
|
if (code_seen('X') || code_seen('x')) {
|
2859
|
2858
|
X_probe_location = code_value() - X_PROBE_OFFSET_FROM_EXTRUDER;
|