mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-29 23:07:42 +00:00
Simple bool in soft_endstops_t
This commit is contained in:
parent
3bba5d55bf
commit
2a2666326b
@ -536,9 +536,9 @@ void restore_feedrate_and_scaling() {
|
|||||||
|
|
||||||
// Software Endstops are based on the configured limits.
|
// Software Endstops are based on the configured limits.
|
||||||
soft_endstops_t soft_endstop = {
|
soft_endstops_t soft_endstop = {
|
||||||
|
true, false,
|
||||||
{ X_MIN_POS, Y_MIN_POS, Z_MIN_POS },
|
{ X_MIN_POS, Y_MIN_POS, Z_MIN_POS },
|
||||||
{ X_MAX_POS, Y_MAX_POS, Z_MAX_POS },
|
{ X_MAX_POS, Y_MAX_POS, Z_MAX_POS }
|
||||||
{ true, false }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -151,12 +151,10 @@ inline float home_bump_mm(const AxisEnum axis) {
|
|||||||
#if HAS_SOFTWARE_ENDSTOPS
|
#if HAS_SOFTWARE_ENDSTOPS
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
xyz_pos_t min, max;
|
bool _enabled, _loose;
|
||||||
struct {
|
|
||||||
bool _enabled:1;
|
|
||||||
bool _loose:1;
|
|
||||||
};
|
|
||||||
bool enabled() { return _enabled && !_loose; }
|
bool enabled() { return _enabled && !_loose; }
|
||||||
|
|
||||||
|
xyz_pos_t min, max;
|
||||||
void get_manual_axis_limits(const AxisEnum axis, float &amin, float &amax) {
|
void get_manual_axis_limits(const AxisEnum axis, float &amin, float &amax) {
|
||||||
amin = -100000; amax = 100000; // "No limits"
|
amin = -100000; amax = 100000; // "No limits"
|
||||||
#if HAS_SOFTWARE_ENDSTOPS
|
#if HAS_SOFTWARE_ENDSTOPS
|
||||||
|
Loading…
Reference in New Issue
Block a user