; bed.g ; called to perform automatic mesh bed compensation via G32 M561 ; Clear any bed transform G28 Z ; home Z axis G29 S2 ; Clear height map file G29 S0 ; Probe the bed and save height map to file and activate bed compensation