Simple bool in soft_endstops_t
This commit is contained in:
@ -151,12 +151,10 @@ inline float home_bump_mm(const AxisEnum axis) {
|
||||
#if HAS_SOFTWARE_ENDSTOPS
|
||||
|
||||
typedef struct {
|
||||
xyz_pos_t min, max;
|
||||
struct {
|
||||
bool _enabled:1;
|
||||
bool _loose:1;
|
||||
};
|
||||
bool _enabled, _loose;
|
||||
bool enabled() { return _enabled && !_loose; }
|
||||
|
||||
xyz_pos_t min, max;
|
||||
void get_manual_axis_limits(const AxisEnum axis, float &amin, float &amax) {
|
||||
amin = -100000; amax = 100000; // "No limits"
|
||||
#if HAS_SOFTWARE_ENDSTOPS
|
||||
|
Reference in New Issue
Block a user