forked from CreatBot/CreatBotKlipperScreen
screen/panels: add action to process update
This commit is contained in:
@@ -126,9 +126,12 @@ class FineTunePanel(ScreenPanel):
|
||||
self.panel = grid
|
||||
self._screen.add_subscription(panel_name)
|
||||
|
||||
def process_update(self, data):
|
||||
def process_update(self, action, data):
|
||||
_ = self.lang.gettext
|
||||
|
||||
if action != "notify_status_update":
|
||||
return
|
||||
|
||||
if "gcode_move" in data:
|
||||
if "homing_origin" in data["gcode_move"]:
|
||||
self.labels['zoffset'].set_text(_("Z Offset") + ": %.2fmm" % data["gcode_move"]["homing_origin"][2])
|
||||
|
Reference in New Issue
Block a user