Skip to content

Commit

Permalink
PR compatibilty
Browse files Browse the repository at this point in the history
changes only if needed and then in a "enabled" area.
  • Loading branch information
ThomasToka committed Jul 12, 2023
1 parent 59f98b3 commit 0039d17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Marlin/src/feature/bedlevel/ubl/ubl.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class unified_bed_leveling {
static void smart_fill_wlsf(const_float_t ) __O2; // O2 gives smaller code than Os on A2560

static int8_t storage_slot;
typedef float bed_mesh_t[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y];

static bed_mesh_t z_values;
#if ENABLED(OPTIMIZED_MESH_STORAGE)
static void set_store_from_mesh(const bed_mesh_t &in_values, mesh_store_t &stored_values);
Expand Down
7 changes: 5 additions & 2 deletions Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -782,14 +782,17 @@ void unified_bed_leveling::shift_mesh_height() {

save_ubl_active_state_and_disable(); // No bed level correction so only raw data is obtained
grid_count_t count = GRID_MAX_POINTS;
int16_t point_num_real;

#if ENABLED(E3S1PRO_RTS)
int16_t point_num_real;
#endif

mesh_index_pair best;
TERN_(EXTENSIBLE_UI, ExtUI::onMeshUpdate(best.pos, ExtUI::G29_START));
do {
if (do_ubl_mesh_map) display_map(param.T_map_type);

const grid_count_t point_num = (GRID_MAX_POINTS - count) + 1;

SERIAL_ECHOLNPGM("Probing mesh point ", point_num, "/", GRID_MAX_POINTS, ".");
TERN_(HAS_STATUS_MESSAGE, ui.status_printf(0, F(S_FMT " %i/%i"), GET_TEXT(MSG_PROBING_POINT), point_num, int(GRID_MAX_POINTS)));

Expand Down

0 comments on commit 0039d17

Please sign in to comment.