I have printed now several pieces on the same bed area and same size and the bed mesh was allways regathered.
So my doubt when studying your code is either the coords are not stored appropriate (i have your macro stored in a subfolder within the config-folder) or the coords are too detailed (see given example) that the comparison is not working at all.
My doubt is that the coords are not stored between each print.
this is what my console is saying after each leveling
As my next file i print with this parameters and bed mesh was redone again, which for may view is not necessary at all if the area around the print is big enough calculated for the bed mesh.
PRINT_START EXTRUDER=220 BED=60 PRINT_MIN=109.307,116.49 PRINT_MAX=180.462,192.991
I have printed now several pieces on the same bed area and same size and the bed mesh was allways regathered. So my doubt when studying your code is either the coords are not stored appropriate (i have your macro stored in a subfolder within the config-folder) or the coords are too detailed (see given example) that the comparison is not working at all. My doubt is that the coords are not stored between each print.
PRINT_START EXTRUDER=220 BED=60 PRINT_MIN=114.967,118.382 PRINT_MAX=181.378,160.406
this is what my console is saying after each leveling
As my next file i print with this parameters and bed mesh was redone again, which for may view is not necessary at all if the area around the print is big enough calculated for the bed mesh. PRINT_START EXTRUDER=220 BED=60 PRINT_MIN=109.307,116.49 PRINT_MAX=180.462,192.991