|
@@ -51,10 +51,10 @@
|
51
|
51
|
extern uint8_t code_value_byte();
|
52
|
52
|
extern bool code_value_bool();
|
53
|
53
|
extern bool code_has_value();
|
54
|
|
- extern float probe_pt(float x, float y, bool, int);
|
|
54
|
+ extern float probe_pt(const float &x, const float &y, bool, int);
|
55
|
55
|
extern bool set_probe_deployed(bool);
|
56
|
56
|
void smart_fill_mesh();
|
57
|
|
- void smart_fill_wlsf(float);
|
|
57
|
+ void smart_fill_wlsf(const float &);
|
58
|
58
|
float measure_business_card_thickness(float &in_height);
|
59
|
59
|
void manually_probe_remaining_mesh(const float&, const float&, const float&, const float&, const bool);
|
60
|
60
|
|
|
@@ -531,7 +531,7 @@
|
531
|
531
|
}
|
532
|
532
|
} else {
|
533
|
533
|
const float cvf = code_value_float();
|
534
|
|
- switch( (int)truncf( cvf * 10.0 ) - 30 ) { // 3.1 -> 1
|
|
534
|
+ switch((int)truncf(cvf * 10.0) - 30) { // 3.1 -> 1
|
535
|
535
|
#if ENABLED(UBL_G29_P31)
|
536
|
536
|
case 1: {
|
537
|
537
|
|
|
@@ -541,9 +541,9 @@
|
541
|
541
|
// P3.12 100X distance weighting
|
542
|
542
|
// P3.13 1000X distance weighting, approaches simple average of nearest points
|
543
|
543
|
|
544
|
|
- const float weight_power = (cvf - 3.10) * 100.0; // 3.12345 -> 2.345
|
545
|
|
- const float weight_factor = weight_power ? pow( 10.0, weight_power ) : 0;
|
546
|
|
- smart_fill_wlsf( weight_factor );
|
|
544
|
+ const float weight_power = (cvf - 3.10) * 100.0, // 3.12345 -> 2.345
|
|
545
|
+ weight_factor = weight_power ? pow(10.0, weight_power) : 0;
|
|
546
|
+ smart_fill_wlsf(weight_factor);
|
547
|
547
|
}
|
548
|
548
|
break;
|
549
|
549
|
#endif
|