💥 Update Motor Current G-codes for extra axes (#23975)
This commit is contained in:
committed by
Scott Lahteine
parent
d58497bc8e
commit
0041de1a8a
@ -447,7 +447,15 @@ typedef struct SettingsDataStruct {
|
||||
// HAS_MOTOR_CURRENT_PWM
|
||||
//
|
||||
#ifndef MOTOR_CURRENT_COUNT
|
||||
#define MOTOR_CURRENT_COUNT NUM_AXES
|
||||
#if HAS_MOTOR_CURRENT_PWM
|
||||
#define MOTOR_CURRENT_COUNT 3
|
||||
#elif HAS_MOTOR_CURRENT_DAC
|
||||
#define MOTOR_CURRENT_COUNT LOGICAL_AXES
|
||||
#elif HAS_MOTOR_CURRENT_I2C
|
||||
#define MOTOR_CURRENT_COUNT DIGIPOT_I2C_NUM_CHANNELS
|
||||
#else // HAS_MOTOR_CURRENT_SPI
|
||||
#define MOTOR_CURRENT_COUNT DISTINCT_AXES
|
||||
#endif
|
||||
#endif
|
||||
uint32_t motor_current_setting[MOTOR_CURRENT_COUNT]; // M907 X Z E ...
|
||||
|
||||
|
Reference in New Issue
Block a user