mbl.active is a bool now
This commit is contained in:
parent
b05f448317
commit
0493fccc0b
|
@ -2465,7 +2465,7 @@ inline void gcode_G28() {
|
|||
*/
|
||||
#if ENABLED(MESH_BED_LEVELING)
|
||||
uint8_t mbl_was_active = mbl.active;
|
||||
mbl.active = 0;
|
||||
mbl.active = false;
|
||||
#endif
|
||||
|
||||
setup_for_endstop_move();
|
||||
|
@ -2896,7 +2896,7 @@ inline void gcode_G28() {
|
|||
// After recording the last point, activate the mbl and home
|
||||
SERIAL_PROTOCOLLNPGM("Mesh probing done.");
|
||||
probe_point = -1;
|
||||
mbl.active = 1;
|
||||
mbl.active = true;
|
||||
enqueue_and_echo_commands_P(PSTR("G28"));
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -551,7 +551,7 @@ void Config_ResetDefault() {
|
|||
home_offset[X_AXIS] = home_offset[Y_AXIS] = home_offset[Z_AXIS] = 0;
|
||||
|
||||
#if ENABLED(MESH_BED_LEVELING)
|
||||
mbl.active = 0;
|
||||
mbl.active = false;
|
||||
#endif
|
||||
|
||||
#if ENABLED(AUTO_BED_LEVELING_FEATURE)
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
class mesh_bed_leveling {
|
||||
public:
|
||||
uint8_t active;
|
||||
bool active;
|
||||
float z_offset;
|
||||
float z_values[MESH_NUM_Y_POINTS][MESH_NUM_X_POINTS];
|
||||
|
||||
|
|
|
@ -946,7 +946,7 @@ void lcd_cooldown() {
|
|||
current_position[Z_AXIS] = MESH_HOME_SEARCH_Z;
|
||||
line_to_current(Z_AXIS);
|
||||
st_synchronize();
|
||||
mbl.active = 1;
|
||||
mbl.active = true;
|
||||
enqueue_and_echo_commands_P(PSTR("G28"));
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue