mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2026-01-05 06:07:43 -07:00
🎨 LCD cosmetic, babystep size
This commit is contained in:
parent
a420e3c155
commit
cda684b6fd
3 changed files with 14 additions and 14 deletions
|
|
@ -200,7 +200,7 @@ typedef struct {
|
|||
select_t select_page{0}, select_print{0};
|
||||
|
||||
#if ENABLED(LCD_BED_TRAMMING)
|
||||
constexpr float bed_tramming_inset_lfbr[] = BED_TRAMMING_INSET_LFRB;
|
||||
constexpr float bed_tramming_inset_lfrb[] = BED_TRAMMING_INSET_LFRB;
|
||||
#endif
|
||||
|
||||
bool hash_changed = true; // Flag to know if message status was changed
|
||||
|
|
@ -2435,23 +2435,23 @@ void setFlow() { setPIntOnClick(FLOW_EDIT_MIN, FLOW_EDIT_MAX, []{ planner.refres
|
|||
switch (point) {
|
||||
case 0:
|
||||
LCD_MESSAGE(MSG_TRAM_FL);
|
||||
x = bed_tramming_inset_lfbr[0];
|
||||
y = bed_tramming_inset_lfbr[1];
|
||||
x = bed_tramming_inset_lfrb[0];
|
||||
y = bed_tramming_inset_lfrb[1];
|
||||
break;
|
||||
case 1:
|
||||
LCD_MESSAGE(MSG_TRAM_FR);
|
||||
x = X_BED_SIZE - bed_tramming_inset_lfbr[2];
|
||||
y = bed_tramming_inset_lfbr[1];
|
||||
x = X_BED_SIZE - bed_tramming_inset_lfrb[2];
|
||||
y = bed_tramming_inset_lfrb[1];
|
||||
break;
|
||||
case 2:
|
||||
LCD_MESSAGE(MSG_TRAM_BR);
|
||||
x = X_BED_SIZE - bed_tramming_inset_lfbr[2];
|
||||
y = Y_BED_SIZE - bed_tramming_inset_lfbr[3];
|
||||
x = X_BED_SIZE - bed_tramming_inset_lfrb[2];
|
||||
y = Y_BED_SIZE - bed_tramming_inset_lfrb[3];
|
||||
break;
|
||||
case 3:
|
||||
LCD_MESSAGE(MSG_TRAM_BL);
|
||||
x = bed_tramming_inset_lfbr[0];
|
||||
y = Y_BED_SIZE - bed_tramming_inset_lfbr[3];
|
||||
x = bed_tramming_inset_lfrb[0];
|
||||
y = Y_BED_SIZE - bed_tramming_inset_lfrb[3];
|
||||
break;
|
||||
#if ENABLED(BED_TRAMMING_INCLUDE_CENTER)
|
||||
case 4:
|
||||
|
|
|
|||
|
|
@ -1967,14 +1967,14 @@ namespace Anycubic {
|
|||
|
||||
setSoftEndstopState(false);
|
||||
|
||||
z_off = getZOffset_mm() - 0.01f;
|
||||
z_off = getZOffset_mm() - BABYSTEP_SIZE_Z;
|
||||
setZOffset_mm(z_off);
|
||||
|
||||
sendTxtToTFT(ftostr52sprj(getZOffset_mm()) + 2, TXT_LEVEL_OFFSET);
|
||||
|
||||
if (isAxisPositionKnown(Z)) {
|
||||
const float currZpos = getAxisPosition_mm(Z);
|
||||
setAxisPosition_mm(currZpos - 0.01f, Z);
|
||||
setAxisPosition_mm(currZpos - BABYSTEP_SIZE_Z, Z);
|
||||
}
|
||||
|
||||
setSoftEndstopState(true);
|
||||
|
|
@ -1985,14 +1985,14 @@ namespace Anycubic {
|
|||
|
||||
setSoftEndstopState(false);
|
||||
|
||||
z_off = getZOffset_mm() + 0.01f;
|
||||
z_off = getZOffset_mm() + BABYSTEP_SIZE_Z;
|
||||
setZOffset_mm(z_off);
|
||||
|
||||
sendTxtToTFT(ftostr52sprj(getZOffset_mm()) + 2, TXT_LEVEL_OFFSET);
|
||||
|
||||
if (isAxisPositionKnown(Z)) { // Move Z axis
|
||||
const float currZpos = getAxisPosition_mm(Z);
|
||||
setAxisPosition_mm(currZpos + 0.01f, Z);
|
||||
setAxisPosition_mm(currZpos + BABYSTEP_SIZE_Z, Z);
|
||||
}
|
||||
|
||||
setSoftEndstopState(true);
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ namespace ExtUI {
|
|||
#if ENABLED(MPC_AUTOTUNE)
|
||||
enum mpcresult_t : uint8_t { MPC_STARTED, MPC_TEMP_ERROR, MPC_INTERRUPTED, MPC_DONE };
|
||||
#endif
|
||||
struct probe_limits_t { float xmin, ymin, xmax, ymax; };
|
||||
typedef struct { float xmin, ymin, xmax, ymax; } probe_limits_t;
|
||||
|
||||
constexpr uint8_t extruderCount = EXTRUDERS;
|
||||
constexpr uint8_t hotendCount = HOTENDS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue