Sync and report changed position

This commit is contained in:
Scott Lahteine
2017-12-10 21:17:07 -06:00
parent 11f9c253e0
commit 03ba79f144
6 changed files with 24 additions and 4 deletions

View File

@ -108,7 +108,7 @@ void GcodeSuite::M420() {
if (parser.seen('S')) set_bed_leveling_enabled(to_enable);
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
if (parser.seen('Z')) set_z_fade_height(parser.value_linear_units());
if (parser.seen('Z')) set_z_fade_height(parser.value_linear_units(), false);
#endif
const bool new_status = planner.leveling_active;

View File

@ -285,6 +285,7 @@ void GcodeSuite::G29() {
bed_level_virt_interpolate();
#endif
set_bed_leveling_enabled(abl_should_enable);
if (abl_should_enable) report_current_position();
}
return;
} // parser.seen('W')