Make max_pos and min_pos static
This commit is contained in:
parent
4750494727
commit
c0904e4e8d
|
|
@ -232,8 +232,6 @@ extern int extrudemultiply; // Sets extrude multiply factor (in percent) for all
|
||||||
extern float extruder_multiplier[EXTRUDERS]; // reciprocal of cross-sectional area of filament (in square millimeters), stored this way to reduce computational burden in planner
|
extern float extruder_multiplier[EXTRUDERS]; // reciprocal of cross-sectional area of filament (in square millimeters), stored this way to reduce computational burden in planner
|
||||||
extern float current_position[NUM_AXIS] ;
|
extern float current_position[NUM_AXIS] ;
|
||||||
extern float destination[NUM_AXIS] ;
|
extern float destination[NUM_AXIS] ;
|
||||||
extern float min_pos[3];
|
|
||||||
extern float max_pos[3];
|
|
||||||
extern bool axis_known_position[3];
|
extern bool axis_known_position[3];
|
||||||
extern uint8_t fanSpeed; //!< Print fan speed, ranges from 0 to 255
|
extern uint8_t fanSpeed; //!< Print fan speed, ranges from 0 to 255
|
||||||
extern uint8_t newFanSpeed;
|
extern uint8_t newFanSpeed;
|
||||||
|
|
|
||||||
|
|
@ -193,8 +193,8 @@ float current_position[NUM_AXIS] = { 0.0, 0.0, 0.0, 0.0 };
|
||||||
#define _z current_position[Z_AXIS]
|
#define _z current_position[Z_AXIS]
|
||||||
#define _e current_position[E_AXIS]
|
#define _e current_position[E_AXIS]
|
||||||
|
|
||||||
float min_pos[3] = { X_MIN_POS, Y_MIN_POS, Z_MIN_POS };
|
static float min_pos[3] = { X_MIN_POS, Y_MIN_POS, Z_MIN_POS };
|
||||||
float max_pos[3] = { X_MAX_POS, Y_MAX_POS, Z_MAX_POS };
|
static float max_pos[3] = { X_MAX_POS, Y_MAX_POS, Z_MAX_POS };
|
||||||
bool axis_known_position[3] = {false, false, false};
|
bool axis_known_position[3] = {false, false, false};
|
||||||
|
|
||||||
static float pause_position[3] = { X_PAUSE_POS, Y_PAUSE_POS, Z_PAUSE_LIFT };
|
static float pause_position[3] = { X_PAUSE_POS, Y_PAUSE_POS, Z_PAUSE_LIFT };
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue