Skip to content

Commit add72fd

Browse files
committed
πŸ§‘β€πŸ’» Individual TMC flags
1 parent ac5fa61 commit add72fd

31 files changed

+962
-2182
lines changed

β€ŽMarlin/src/feature/digipot/digipot_mcp4451.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,7 @@ void DigipotI2C::init() {
8787
Wire.begin();
8888
#endif
8989
// Set up initial currents as defined in Configuration_adv.h
90-
static const float digipot_motor_current[] PROGMEM =
91-
#if ENABLED(DIGIPOT_USE_RAW_VALUES)
92-
DIGIPOT_MOTOR_CURRENT
93-
#else
94-
DIGIPOT_I2C_MOTOR_CURRENTS
95-
#endif
96-
;
90+
static const float digipot_motor_current[] PROGMEM = TERN(DIGIPOT_USE_RAW_VALUES, DIGIPOT_MOTOR_CURRENT, DIGIPOT_I2C_MOTOR_CURRENTS);
9791
for (uint8_t i = 0; i < COUNT(digipot_motor_current); ++i)
9892
set_current(i, pgm_read_float(&digipot_motor_current[i]));
9993
}

0 commit comments

Comments
Β (0)