Apply int32_t to stepper
This commit is contained in:
@ -94,7 +94,7 @@ class Stepper {
|
||||
#endif
|
||||
|
||||
// Counter variables for the Bresenham line tracer
|
||||
static long counter_X, counter_Y, counter_Z, counter_E;
|
||||
static int32_t counter_X, counter_Y, counter_Z, counter_E;
|
||||
static volatile uint32_t step_events_completed; // The number of step events executed in the current block
|
||||
|
||||
#if ENABLED(BEZIER_JERK_CONTROL)
|
||||
@ -137,8 +137,8 @@ class Stepper {
|
||||
static hal_timer_t acc_step_rate; // needed for deceleration start point
|
||||
#endif
|
||||
|
||||
static volatile long endstops_trigsteps[XYZ];
|
||||
static volatile long endstops_stepsTotal, endstops_stepsDone;
|
||||
static volatile int32_t endstops_trigsteps[XYZ];
|
||||
static volatile int32_t endstops_stepsTotal, endstops_stepsDone;
|
||||
|
||||
//
|
||||
// Positions of stepper motors, in step units
|
||||
@ -154,7 +154,7 @@ class Stepper {
|
||||
// Mixing extruder mix counters
|
||||
//
|
||||
#if ENABLED(MIXING_EXTRUDER)
|
||||
static long counter_m[MIXING_STEPPERS];
|
||||
static int32_t counter_m[MIXING_STEPPERS];
|
||||
#define MIXING_STEPPERS_LOOP(VAR) \
|
||||
for (uint8_t VAR = 0; VAR < MIXING_STEPPERS; VAR++) \
|
||||
if (current_block->mix_event_count[VAR])
|
||||
@ -191,9 +191,9 @@ class Stepper {
|
||||
//
|
||||
// Set the current position in steps
|
||||
//
|
||||
static void set_position(const long &a, const long &b, const long &c, const long &e);
|
||||
static void set_position(const AxisEnum &a, const long &v);
|
||||
static void set_e_position(const long &e);
|
||||
static void set_position(const int32_t &a, const int32_t &b, const int32_t &c, const int32_t &e);
|
||||
static void set_position(const AxisEnum &a, const int32_t &v);
|
||||
static void set_e_position(const int32_t &e);
|
||||
|
||||
//
|
||||
// Set direction bits for all steppers
|
||||
@ -203,7 +203,7 @@ class Stepper {
|
||||
//
|
||||
// Get the position of a stepper, in steps
|
||||
//
|
||||
static long position(const AxisEnum axis);
|
||||
static int32_t position(const AxisEnum axis);
|
||||
|
||||
//
|
||||
// Report the positions of the steppers, in steps
|
||||
|
Reference in New Issue
Block a user