|
@@ -130,23 +130,25 @@ TemporaryBedLevelingState::TemporaryBedLevelingState(const bool enable) : saved(
|
130
|
130
|
*/
|
131
|
131
|
void reset_bed_level() {
|
132
|
132
|
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("reset_bed_level");
|
133
|
|
- set_bed_leveling_enabled(false);
|
134
|
|
- #if ENABLED(MESH_BED_LEVELING)
|
135
|
|
- mbl.reset();
|
136
|
|
- #elif ENABLED(AUTO_BED_LEVELING_UBL)
|
|
133
|
+ #if ENABLED(AUTO_BED_LEVELING_UBL)
|
137
|
134
|
ubl.reset();
|
138
|
|
- #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
139
|
|
- bilinear_start[X_AXIS] = bilinear_start[Y_AXIS] =
|
140
|
|
- bilinear_grid_spacing[X_AXIS] = bilinear_grid_spacing[Y_AXIS] = 0;
|
141
|
|
- for (uint8_t x = 0; x < GRID_MAX_POINTS_X; x++)
|
142
|
|
- for (uint8_t y = 0; y < GRID_MAX_POINTS_Y; y++) {
|
143
|
|
- z_values[x][y] = NAN;
|
144
|
|
- #if ENABLED(EXTENSIBLE_UI)
|
145
|
|
- ExtUI::onMeshUpdate(x, y, 0);
|
146
|
|
- #endif
|
147
|
|
- }
|
148
|
|
- #elif ABL_PLANAR
|
149
|
|
- planner.bed_level_matrix.set_to_identity();
|
|
135
|
+ #else
|
|
136
|
+ set_bed_leveling_enabled(false);
|
|
137
|
+ #if ENABLED(MESH_BED_LEVELING)
|
|
138
|
+ mbl.reset();
|
|
139
|
+ #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
|
140
|
+ bilinear_start[X_AXIS] = bilinear_start[Y_AXIS] =
|
|
141
|
+ bilinear_grid_spacing[X_AXIS] = bilinear_grid_spacing[Y_AXIS] = 0;
|
|
142
|
+ for (uint8_t x = 0; x < GRID_MAX_POINTS_X; x++)
|
|
143
|
+ for (uint8_t y = 0; y < GRID_MAX_POINTS_Y; y++) {
|
|
144
|
+ z_values[x][y] = NAN;
|
|
145
|
+ #if ENABLED(EXTENSIBLE_UI)
|
|
146
|
+ ExtUI::onMeshUpdate(x, y, 0);
|
|
147
|
+ #endif
|
|
148
|
+ }
|
|
149
|
+ #elif ABL_PLANAR
|
|
150
|
+ planner.bed_level_matrix.set_to_identity();
|
|
151
|
+ #endif
|
150
|
152
|
#endif
|
151
|
153
|
}
|
152
|
154
|
|