use planner.z_fade_height, etc. instead of private, ubl-specific g29 fade height

This commit is contained in:
Brian
2017-04-20 18:45:58 -04:00
committed by Roxy-3D
parent e66d9f1313
commit 88649b06a6
4 changed files with 12 additions and 33 deletions

8
Marlin/ubl.cpp Normal file → Executable file
View File

@ -90,14 +90,6 @@
if (sanity_check())
SERIAL_PROTOCOLLNPGM("?In load_state() sanity_check() failed.\n");
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
const float recip = ubl.state.g29_correction_fade_height ? 1.0 / ubl.state.g29_correction_fade_height : 1.0;
if (ubl.state.g29_fade_height_multiplier != recip) {
ubl.state.g29_fade_height_multiplier = recip;
store_state();
}
#endif
}
void unified_bed_leveling::load_mesh(const int16_t m) {