Fix a minor compile warning

This commit is contained in:
Scott Lahteine 2018-11-22 05:34:58 -06:00
parent 5b1d52671c
commit d29cb09b3e
2 changed files with 3 additions and 3 deletions

View file

@ -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);
}
}

View file

@ -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
/**