Move extended_axis_codes to PROGMEM

This commit is contained in:
Scott Lahteine
2018-03-06 22:16:19 -06:00
parent d7aed2fe4f
commit e28e3bb532
4 changed files with 86 additions and 80 deletions

View File

@ -37,8 +37,8 @@ void GcodeSuite::M906() {
LOOP_XYZE(i) values[i] = parser.intval(axis_codes[i]);
#define TMC_SET_GET_CURRENT(P,Q) do { \
if (values[P##_AXIS]) tmc_set_current(stepper##Q, extended_axis_codes[TMC_##Q], values[P##_AXIS]); \
else tmc_get_current(stepper##Q, extended_axis_codes[TMC_##Q]); } while(0)
if (values[P##_AXIS]) tmc_set_current(stepper##Q, TMC_##Q, values[P##_AXIS]); \
else tmc_get_current(stepper##Q, TMC_##Q); } while(0)
#if X_IS_TRINAMIC
TMC_SET_GET_CURRENT(X,X);