|
@ -65,8 +65,10 @@ void GcodeSuite::M907() { |
|
|
#if ENABLED(DIGIPOT_I2C) |
|
|
#if ENABLED(DIGIPOT_I2C) |
|
|
// this one uses actual amps in floating point
|
|
|
// this one uses actual amps in floating point
|
|
|
LOOP_XYZE(i) if (parser.seenval(axis_codes[i])) digipot_i2c_set_current(i, parser.value_float()); |
|
|
LOOP_XYZE(i) if (parser.seenval(axis_codes[i])) digipot_i2c_set_current(i, parser.value_float()); |
|
|
// for each additional extruder (named B,C,D,E..., channels 4,5,6,7...)
|
|
|
// Additional extruders use B,C,D for channels 4,5,6.
|
|
|
for (uint8_t i = NUM_AXIS; i < DIGIPOT_I2C_NUM_CHANNELS; i++) if (parser.seenval('B' + i - (NUM_AXIS))) digipot_i2c_set_current(i, parser.value_float()); |
|
|
// TODO: Change these parameters because 'E' is used. B<index>?
|
|
|
|
|
|
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()); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(DAC_STEPPER_CURRENT) |
|
|
#if ENABLED(DAC_STEPPER_CURRENT) |
|
|