|
@@ -56,7 +56,7 @@
|
56
|
56
|
extern bool set_probe_deployed(bool);
|
57
|
57
|
void smart_fill_mesh();
|
58
|
58
|
float measure_business_card_thickness(float &in_height);
|
59
|
|
- void manually_probe_remaining_mesh(const float &lx, const float &ly, float &z_clearance, const float &card_thickness, const bool do_ubl_mesh_map);
|
|
59
|
+ void manually_probe_remaining_mesh(const float&, const float&, const float&, const float&, const bool);
|
60
|
60
|
|
61
|
61
|
bool ProbeStay = true;
|
62
|
62
|
|
|
@@ -482,7 +482,7 @@
|
482
|
482
|
*/
|
483
|
483
|
if (c_flag) {
|
484
|
484
|
|
485
|
|
- if ( repetition_cnt >= ( GRID_MAX_POINTS_X * GRID_MAX_POINTS_Y )) {
|
|
485
|
+ if (repetition_cnt >= GRID_MAX_POINTS) {
|
486
|
486
|
for ( uint8_t x = 0; x < GRID_MAX_POINTS_X; x++ ) {
|
487
|
487
|
for ( uint8_t y = 0; y < GRID_MAX_POINTS_Y; y++ ) {
|
488
|
488
|
ubl.z_values[x][y] = ubl_constant;
|
|
@@ -735,7 +735,7 @@
|
735
|
735
|
ubl.save_ubl_active_state_and_disable(); // we don't do bed level correction because we want the raw data when we probe
|
736
|
736
|
DEPLOY_PROBE();
|
737
|
737
|
|
738
|
|
- uint16_t max_iterations = ( GRID_MAX_POINTS_X * GRID_MAX_POINTS_Y );
|
|
738
|
+ uint16_t max_iterations = GRID_MAX_POINTS;
|
739
|
739
|
|
740
|
740
|
do {
|
741
|
741
|
if (ubl_lcd_clicked()) {
|
|
@@ -941,7 +941,7 @@
|
941
|
941
|
return thickness;
|
942
|
942
|
}
|
943
|
943
|
|
944
|
|
- void manually_probe_remaining_mesh(const float &lx, const float &ly, float &z_clearance, const float &card_thickness, const bool do_ubl_mesh_map) {
|
|
944
|
+ void manually_probe_remaining_mesh(const float &lx, const float &ly, const float &z_clearance, const float &card_thickness, const bool do_ubl_mesh_map) {
|
945
|
945
|
|
946
|
946
|
ubl.has_control_of_lcd_panel = true;
|
947
|
947
|
ubl.save_ubl_active_state_and_disable(); // we don't do bed level correction because we want the raw data when we probe
|
|
@@ -956,14 +956,11 @@
|
956
|
956
|
if (location.x_index < 0 && location.y_index < 0) continue;
|
957
|
957
|
|
958
|
958
|
const float rawx = pgm_read_float(&ubl.mesh_index_to_xpos[location.x_index]),
|
959
|
|
- rawy = pgm_read_float(&ubl.mesh_index_to_ypos[location.y_index]);
|
960
|
|
-
|
961
|
|
- const float xProbe = LOGICAL_X_POSITION(rawx),
|
|
959
|
+ rawy = pgm_read_float(&ubl.mesh_index_to_ypos[location.y_index]),
|
|
960
|
+ xProbe = LOGICAL_X_POSITION(rawx),
|
962
|
961
|
yProbe = LOGICAL_Y_POSITION(rawy);
|
963
|
962
|
|
964
|
|
- if ( ! position_is_reachable_raw_xy( rawx, rawy )) { // SHOULD NOT OCCUR (find_closest_mesh_point only returns reachable points)
|
965
|
|
- break;
|
966
|
|
- }
|
|
963
|
+ if (!position_is_reachable_raw_xy(rawx, rawy)) break; // SHOULD NOT OCCUR (find_closest_mesh_point only returns reachable points)
|
967
|
964
|
|
968
|
965
|
do_blocking_move_to_z(Z_CLEARANCE_BETWEEN_PROBES);
|
969
|
966
|
|
|
@@ -1129,6 +1126,7 @@
|
1129
|
1126
|
SERIAL_PROTOCOLLNPGM("Invalid map type.\n");
|
1130
|
1127
|
return UBL_ERR;
|
1131
|
1128
|
}
|
|
1129
|
+
|
1132
|
1130
|
// Check if a map type was specified
|
1133
|
1131
|
if (code_seen('M')) { // Warning! Use of 'M' flouts established standards.
|
1134
|
1132
|
map_type = code_has_value() ? code_value_int() : 0;
|