reorder
This commit is contained in:
committed by
InsanityAutomation
parent
395d11b06f
commit
a3d0fe53cf
@@ -1282,7 +1282,7 @@ void MarlinSettings::postprocess() {
|
||||
{
|
||||
_FIELD_TEST(motor_current_setting);
|
||||
|
||||
#if HAS_MOTOR_CURRENT_PWM || HAS_MOTOR_CURRENT_SPI
|
||||
#if HAS_MOTOR_CURRENT_SPI || HAS_MOTOR_CURRENT_PWM
|
||||
EEPROM_WRITE(stepper.motor_current_setting);
|
||||
#else
|
||||
const uint32_t no_current[3] = { 0 };
|
||||
@@ -2123,7 +2123,7 @@ void MarlinSettings::postprocess() {
|
||||
DEBUG_ECHOLNPGM("DIGIPOTS Loading");
|
||||
EEPROM_READ(motor_current_setting);
|
||||
DEBUG_ECHOLNPGM("DIGIPOTS Loaded");
|
||||
#if HAS_MOTOR_CURRENT_PWM || HAS_MOTOR_CURRENT_SPI
|
||||
#if HAS_MOTOR_CURRENT_SPI || HAS_MOTOR_CURRENT_PWM
|
||||
if (!validating)
|
||||
COPY(stepper.motor_current_setting, motor_current_setting);
|
||||
#endif
|
||||
@@ -3716,7 +3716,7 @@ void MarlinSettings::reset() {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_MOTOR_CURRENT_PWM || HAS_MOTOR_CURRENT_SPI
|
||||
#if HAS_MOTOR_CURRENT_SPI || HAS_MOTOR_CURRENT_PWM
|
||||
CONFIG_ECHO_HEADING("Stepper motor currents:");
|
||||
CONFIG_ECHO_START();
|
||||
#if HAS_MOTOR_CURRENT_PWM
|
||||
|
||||
@@ -138,7 +138,7 @@ Stepper stepper; // Singleton
|
||||
bool Stepper::separate_multi_axis = false;
|
||||
#endif
|
||||
|
||||
#if HAS_MOTOR_CURRENT_PWM || HAS_MOTOR_CURRENT_SPI
|
||||
#if HAS_MOTOR_CURRENT_SPI || HAS_MOTOR_CURRENT_PWM
|
||||
bool Stepper::initialized; // = false
|
||||
uint32_t Stepper::motor_current_setting[MOTOR_CURRENT_COUNT]; // Initialized by settings.load()
|
||||
#if HAS_MOTOR_CURRENT_SPI
|
||||
|
||||
@@ -245,7 +245,7 @@ class Stepper {
|
||||
static bool separate_multi_axis;
|
||||
#endif
|
||||
|
||||
#if HAS_MOTOR_CURRENT_PWM || HAS_MOTOR_CURRENT_SPI
|
||||
#if HAS_MOTOR_CURRENT_SPI || HAS_MOTOR_CURRENT_PWM
|
||||
#if HAS_MOTOR_CURRENT_PWM
|
||||
#ifndef PWM_MOTOR_CURRENT
|
||||
#define PWM_MOTOR_CURRENT DEFAULT_PWM_MOTOR_CURRENT
|
||||
@@ -593,7 +593,7 @@ class Stepper {
|
||||
static int32_t _eval_bezier_curve(const uint32_t curr_step);
|
||||
#endif
|
||||
|
||||
#if HAS_MOTOR_CURRENT_PWM || HAS_MOTOR_CURRENT_SPI
|
||||
#if HAS_MOTOR_CURRENT_SPI || HAS_MOTOR_CURRENT_PWM
|
||||
static void digipot_init();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user