Marlin
Marlin copied to clipboard
Fix bed leveling issues
Description
Two bugs
-
a while loop in line_to_destination_cartesian can loop forever. Code has
while (cnt)but variable cnt is a structure with a X and a Y component. This while does not end. Replaced withwhile (cnt.x || cnt.y) -
After https://github.com/MarlinFirmware/Marlin/commit/ba08dcfb76804a912380603b3f69831ea0d1d6eb MESH_BED_LEVELING with SEGMENT_LEVELED_MOVES disabled fails to build. Updated variable types to be unsigned.
Requirements
Bed leveling (UBL or MESH) with SEGMENT_LEVELED_MOVES disabled
Benefits
Works as expected
Related Issues
i have a question, for cartesian beds, is it better to have SEGMENT_LEVELED_MOVES? and what would the advantages/disadvantages be for being defined or undefined?
closing as sjasonsmith found a better fix. https://github.com/MarlinFirmware/Marlin/pull/26936 That fixes the bool operation in XYval, vs just avoiding the broken bool
closing as sjasonsmith found a better fix. #26936 That fixes the bool operation in XYval, vs just avoiding the broken bool
What about the MBL bug?
oh darn, its a two parter... part 1 is addressed by https://github.com/MarlinFirmware/Marlin/pull/26936 But part 2... updated PR to just address this