Skip to content

Commit

Permalink
The UBL Update - stabilizing
Browse files Browse the repository at this point in the history
should work reliably now :)
  • Loading branch information
ThomasToka committed Jul 12, 2023
1 parent c78c4b0 commit 20a88f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ void unified_bed_leveling::shift_mesh_height() {
ExtUI::onMeshUpdate(best.pos, measured_z);
#endif
#if ENABLED(E3S1PRO_RTS)
point_num_real = best.pos.x + best.pos.y * 5 + 1;
point_num_real = best.pos.x + best.pos.y * GRID_MAX_POINTS_X + 1;
if(old_leveling == 1){
const uint16_t percent = 100 / GRID_MAX_POINTS * (GRID_MAX_POINTS - (count - 1));
rtscheck.RTS_SndData((uint16_t) (percent / 2) , AUTO_BED_LEVEL_TITLE_VP);
Expand Down
9 changes: 6 additions & 3 deletions Marlin/src/lcd/rts/e3s1pro/lcd_rts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ void RTSSHOW::RTS_Init(void)
RTS_SndData(0, DOWNLOAD_PREVIEW_VP);
#endif

//#if ENABLED(AUTO_BED_LEVELING_BILINEAR)
#if ANY(AUTO_BED_LEVELING_BILINEAR, AUTO_BED_LEVELING_UBL)
bool zig = false;
int8_t inStart, inStop, inInc, showcount;
showcount = 0;
Expand Down Expand Up @@ -540,8 +540,10 @@ void RTSSHOW::RTS_Init(void)
showcount++;
}
}
#endif
#if ENABLED(AUTO_BED_LEVELING_BILINEAR)
queue.enqueue_now_P(PSTR("M420 S1"));
//#endif
#endif

/***************transmit Fan speed to screen*****************/
// turn off fans
Expand Down Expand Up @@ -2476,8 +2478,9 @@ void RTSSHOW::RTS_HandleData(void)
#else
touchscreen_requested_mesh = 1;
queue.enqueue_one_P(PSTR("G29 P1 T"));
// queue.enqueue_one_P(PSTR("G29 P3"));
queue.enqueue_one_P(PSTR("G29 S0"));
queue.enqueue_one_P(PSTR("M420 S1"));
queue.enqueue_one_P(PSTR("M500"));
#endif
#endif
}
Expand Down

0 comments on commit 20a88f5

Please sign in to comment.