💥 Update Motor Current G-codes for extra axes (#23975)

This commit is contained in:
DerAndere
2022-04-19 05:15:15 +02:00
committed by Scott Lahteine
parent d58497bc8e
commit 0041de1a8a
9 changed files with 138 additions and 68 deletions

View File

@ -329,7 +329,7 @@ class Stepper {
#ifndef MOTOR_CURRENT_PWM_FREQUENCY
#define MOTOR_CURRENT_PWM_FREQUENCY 31400
#endif
#define MOTOR_CURRENT_COUNT NUM_AXES
#define MOTOR_CURRENT_COUNT 3
#elif HAS_MOTOR_CURRENT_SPI
static constexpr uint32_t digipot_count[] = DIGIPOT_MOTOR_CURRENT;
#define MOTOR_CURRENT_COUNT COUNT(Stepper::digipot_count)