XY/Z Babystep Multiplicators (#15691)
This commit is contained in:
parent
abb44cf564
commit
f139642e0f
109 changed files with 230 additions and 119 deletions
|
|
@ -53,7 +53,12 @@
|
|||
void _lcd_babystep(const AxisEnum axis, PGM_P const msg) {
|
||||
if (ui.use_click()) return ui.goto_previous_screen_no_defer();
|
||||
if (ui.encoderPosition) {
|
||||
const int16_t steps = int16_t(ui.encoderPosition) * (BABYSTEP_MULTIPLICATOR);
|
||||
const int16_t steps = int16_t(ui.encoderPosition) * (
|
||||
#if ENABLED(BABYSTEP_XY)
|
||||
axis != Z_AXIS ? BABYSTEP_MULTIPLICATOR_XY :
|
||||
#endif
|
||||
BABYSTEP_MULTIPLICATOR_Z
|
||||
);
|
||||
ui.encoderPosition = 0;
|
||||
ui.refresh(LCDVIEW_REDRAW_NOW);
|
||||
babystep.add_steps(axis, steps);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue