I have these limit switches https://www.amazon.co.uk/gp/product/B07DK11STZ/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1 ( I have also tried others, same result) and an mks 32.1 board. The limit switch activates and stops the laser when in the middle of the working area and I press the switch with my finger (Only when jogging and not homing). When I try and home the laser in lightburn the limit switch activates (red light comes on) but is ignored and motion continues. Because of this I think it must be some setting I am missing. Here are my settings.
I don’t think this has worked. When I try to home, one axis will get there first but it won’t stop until the other limit switch is activated. That doesn’t happen because all movement is stopped when one limit switch has been activated. I can see the machine homing if I activate the 2nd switch manually and I can do that with either axis.