Skip to content

Xennis/OctoPrint-RestoreLevelingAfterG28

Repository files navigation

OctoPrint Plugin – Restore Leveling After G28

Python

Automatically keeps bed leveling on after G28 (Auto Home).

Marlin code G28 disables bed leveling. The plugin restores the prior state:

  • Before the G28 command a M420 V is send to check if leveling is enabled or not.
  • If leveling was enabled: After the G28 command a M420 S1 is send to enable leveling.

That same behaviour can be enabled in the Marlin firmware via RESTORE_LEVELING_AFTER_G28.

Setup

Install via the bundled Plugin Manager or manually using this URL:

https://github.com/Xennis/OctoPrint-RestoreLevelingAfterG28/archive/master.zip

Configuration

The plugin does not adjust the UI. It has the following settings:

  • zFadeHeight: If set the Z fade high parameter in the M420 command is set. The value should be a number (integer, float).

Example

For details checkout the official documentation.

plugins:
  restorelevelingafterg28:
    zFadeHeight: 2