Browse Source

Use AxisEnum instead of int for _lcd_move

pull/1/head
Scott Lahteine 10 years ago
parent
commit
31932912dd
  1. 2
      Marlin/ultralcd.cpp

2
Marlin/ultralcd.cpp

@ -660,7 +660,7 @@ inline void line_to_current(AxisEnum axis) {
float move_menu_scale; float move_menu_scale;
static void lcd_move_menu_axis(); static void lcd_move_menu_axis();
static void _lcd_move(const char *name, int axis, int min, int max) { static void _lcd_move(const char *name, AxisEnum axis, int min, int max) {
if (encoderPosition != 0) { if (encoderPosition != 0) {
refresh_cmd_timeout(); refresh_cmd_timeout();
current_position[axis] += float((int)encoderPosition) * move_menu_scale; current_position[axis] += float((int)encoderPosition) * move_menu_scale;

Loading…
Cancel
Save