From d29cb09b3ef4e3c384fc37e4e4c4e837e6f64e31 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Thu, 22 Nov 2018 05:34:58 -0600 Subject: [PATCH] Fix a minor compile warning --- Marlin/src/gcode/config/M200-M205.cpp | 2 +- Marlin/src/inc/Conditionals_LCD.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/src/gcode/config/M200-M205.cpp b/Marlin/src/gcode/config/M200-M205.cpp index 08a2b1560..f806fd19d 100644 --- a/Marlin/src/gcode/config/M200-M205.cpp +++ b/Marlin/src/gcode/config/M200-M205.cpp @@ -61,7 +61,7 @@ void GcodeSuite::M201() { LOOP_XYZE(i) { if (parser.seen(axis_codes[i])) { - const uint8_t a = (i == uint8_t(E_AXIS) ? E_AXIS_N(target_extruder) : i); + const uint8_t a = (i == E_AXIS ? E_AXIS_N(target_extruder) : i); planner.settings.max_acceleration_mm_per_s2[a] = parser.value_axis_units((AxisEnum)a); } } diff --git a/Marlin/src/inc/Conditionals_LCD.h b/Marlin/src/inc/Conditionals_LCD.h index 55e371870..a030ae02f 100644 --- a/Marlin/src/inc/Conditionals_LCD.h +++ b/Marlin/src/inc/Conditionals_LCD.h @@ -414,11 +414,11 @@ */ #if ENABLED(DISTINCT_E_FACTORS) && E_STEPPERS > 1 #define XYZE_N (XYZ + E_STEPPERS) - #define E_AXIS_N(E) (E_AXIS + E) + #define E_AXIS_N(E) (uint8_t(E_AXIS) + E) #else #undef DISTINCT_E_FACTORS #define XYZE_N XYZE - #define E_AXIS_N(E) E_AXIS + #define E_AXIS_N(E) uint8_t(E_AXIS) #endif /**