diff --git a/docs/Configuration.md b/docs/Configuration.md index 4b295ec8..31359e93 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -78,16 +78,17 @@ titlebar_items: chamber, MCU, Pi # The style of the user defined items in the titlebar # Can be 'full' indicating that the full name is shown, 'short' for the first letter, or None (default) for no name titlebar_name_type: None -``` -## Z probe calibrate Option -If for any reason the XYZ home position is not suitable for calibrating the probe Z offset, you can enter the coordinates for the desired position here. -``` -[z_calibrate_position] -# The specified positions must be> 0 otherwise this option is ignored. -# the center of the print bed is a good value +# Z probe calibrate position +# By default is the middle of the bed calibrate_x_position: 100 calibrate_y_position: 100 + +# Screen DPMS +# By default DPMS is used to turn off the screen, this should prevent burn-in and save power. +# However if you find that your screen doesn't turn off because it doesn't support it +# Setting this to false will just turn the screen black. +use_dpms: True ``` ## Preheat Options diff --git a/panels/zcalibrate.py b/panels/zcalibrate.py index ebaf239c..5dd84dcf 100644 --- a/panels/zcalibrate.py +++ b/panels/zcalibrate.py @@ -148,6 +148,7 @@ class ZCalibratePanel(ScreenPanel): x_position = printer_cfg.getint("calibrate_x_position", 0) y_position = printer_cfg.getint("calibrate_y_position", 0) elif 'z_calibrate_position' in self._config.get_config(): + # OLD global way, this should be deprecated x_position = self._config.get_config()['z_calibrate_position'].getint("calibrate_x_position", 0) y_position = self._config.get_config()['z_calibrate_position'].getint("calibrate_y_position", 0)