♻️ Refactor axis counts and loops
This commit is contained in:
committed by
Scott Lahteine
parent
f7d28ce1d6
commit
26a244325b
@ -64,7 +64,7 @@ void menu_backlash();
|
||||
|
||||
void menu_dac() {
|
||||
static xyze_uint8_t driverPercent;
|
||||
LOOP_XYZE(i) driverPercent[i] = stepper_dac.get_current_percent((AxisEnum)i);
|
||||
LOOP_LOGICAL_AXES(i) driverPercent[i] = stepper_dac.get_current_percent((AxisEnum)i);
|
||||
START_MENU();
|
||||
BACK_ITEM(MSG_ADVANCED_SETTINGS);
|
||||
#define EDIT_DAC_PERCENT(A) EDIT_ITEM(uint8, MSG_DAC_PERCENT_##A, &driverPercent[_AXIS(A)], 0, 100, []{ stepper_dac.set_current_percents(driverPercent); })
|
||||
|
@ -206,7 +206,7 @@
|
||||
#if ENABLED(MESH_EDIT_MENU)
|
||||
|
||||
inline void refresh_planner() {
|
||||
set_current_from_steppers_for_axis(ALL_AXES);
|
||||
set_current_from_steppers_for_axis(ALL_AXES_MASK);
|
||||
sync_plan_position();
|
||||
}
|
||||
|
||||
|
@ -430,7 +430,7 @@ void ubl_map_move_to_xy() {
|
||||
|
||||
// Use the built-in manual move handler to move to the mesh point.
|
||||
ui.manual_move.set_destination(xy);
|
||||
ui.manual_move.soon(ALL_AXES);
|
||||
ui.manual_move.soon(ALL_AXES_MASK);
|
||||
}
|
||||
|
||||
inline int32_t grid_index(const uint8_t x, const uint8_t y) {
|
||||
|
Reference in New Issue
Block a user