Software end stops

What’s the difference between MAX_SOFTWARE_ENDSTOP and BED_SIZE?

I can see that MAX_SOFTWARE_ENDSTOPs take their values straight from BED_SIZE.

So why have both BED_SIZE AND MAX_SOFTWARE_ENDSTOPs?

Is BED_SIZE used for anything else?

Setting max software endstops from bed size is just a shortcut. You can set then to different things. The bed size gets used for other calculations. I’m sure it’s also used as a shortcut in the autoleveling stuff. I think it’s also used in the sanity checks. You’d have to do a search to find out where else it’s used.

I have a feeling bed size isn’t used in the code to stop anything, it’s just used to set up a bunch of configurations.

1 Like