🩹 Extruders 0 patch for PWM Motor Current (#22163)
This commit is contained in:
parent
d8df8e0eed
commit
f22c5d3cc6
@ -67,9 +67,11 @@ void GcodeSuite::M907() {
|
|||||||
LOOP_LOGICAL_AXES(i) if (parser.seenval(axis_codes[i])) digipot_i2c.set_current(i, parser.value_float());
|
LOOP_LOGICAL_AXES(i) if (parser.seenval(axis_codes[i])) digipot_i2c.set_current(i, parser.value_float());
|
||||||
// Additional extruders use B,C,D for channels 4,5,6.
|
// Additional extruders use B,C,D for channels 4,5,6.
|
||||||
// TODO: Change these parameters because 'E' is used. B<index>?
|
// TODO: Change these parameters because 'E' is used. B<index>?
|
||||||
|
#if HAS_EXTRUDERS
|
||||||
for (uint8_t i = E_AXIS + 1; i < DIGIPOT_I2C_NUM_CHANNELS; i++)
|
for (uint8_t i = E_AXIS + 1; i < DIGIPOT_I2C_NUM_CHANNELS; i++)
|
||||||
if (parser.seenval('B' + i - (E_AXIS + 1))) digipot_i2c.set_current(i, parser.value_float());
|
if (parser.seenval('B' + i - (E_AXIS + 1))) digipot_i2c.set_current(i, parser.value_float());
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ENABLED(HAS_MOTOR_CURRENT_DAC)
|
#if ENABLED(HAS_MOTOR_CURRENT_DAC)
|
||||||
if (parser.seenval('S')) {
|
if (parser.seenval('S')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user