Skip to content

Commit

Permalink
fix referencing E1, E2
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAndere1 committed Mar 31, 2022
1 parent 65fae99 commit 69c3fb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/gcode/feature/digipot/M907-M910.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ void GcodeSuite::M907() {
SERIAL_ECHO(stepper.motor_current_setting[q]);
}
#if E_STEPPERS >= 2
SERIAL_ECHOPGM_P(PSTR(" B"), stepper.motor_current_setting[ADD1(E_AXIS)] // B (maps to E1 with LINEAR_AXES 3 according to DIGIPOT_CHANNELS)
SERIAL_ECHOPGM_P(PSTR(" B"), stepper.motor_current_setting[E_AXIS + 1] // B (maps to E1 with LINEAR_AXES 3 according to DIGIPOT_CHANNELS)
#if E_STEPPERS >= 3
, PSTR(" C"), stepper.motor_current_setting[ADD2(E_AXIS)] // C (mapping to E2 must be defined by DIGIPOT_CHANNELS)
, PSTR(" C"), stepper.motor_current_setting[E_AXIS + 2] // C (mapping to E2 must be defined by DIGIPOT_CHANNELS)
#endif
);
#endif
Expand Down

0 comments on commit 69c3fb3

Please sign in to comment.