Add code to handle changes to zprobe_zoffset

This commit is contained in:
Scott Lahteine
2017-04-11 05:05:23 -05:00
parent 8fa4209916
commit 60ac41a32c
4 changed files with 49 additions and 36 deletions

View File

@ -216,6 +216,10 @@ void MarlinSettings::postprocess() {
//#endif
);
#endif
#if HAS_BED_PROBE
refresh_zprobe_zoffset();
#endif
}
#if ENABLED(EEPROM_SETTINGS)
@ -344,7 +348,7 @@ void MarlinSettings::postprocess() {
#endif // MESH_BED_LEVELING
#if !HAS_BED_PROBE
float zprobe_zoffset = 0;
const float zprobe_zoffset = 0;
#endif
EEPROM_WRITE(zprobe_zoffset);
@ -685,7 +689,7 @@ void MarlinSettings::postprocess() {
#endif // MESH_BED_LEVELING
#if !HAS_BED_PROBE
float zprobe_zoffset = 0;
float zprobe_zoffset;
#endif
EEPROM_READ(zprobe_zoffset);