zcalibrate: fix wrong sign in new offset

This commit is contained in:
alfrix authored and Alfredo Monclus committed 2022-09-02 19:58:35 -03:00
1 parent 1704276c2d
commit 657f1b133f
1 file changed
+1 -1
+1 -1
View File
@@ -244,7 +244,7 @@ class ZCalibratePanel(ScreenPanel):
def update_position(self, position):
self.widgets['zposition'].set_text(f"Z: {position[2]:.2f}")
if self.z_offset is not None:
self.widgets['zoffset'].set_text(f"{position[2] - self.z_offset:.2f}")
self.widgets['zoffset'].set_text(f"{-position[2] + self.z_offset:.2f}")
def change_distance(self, widget, distance):
if self.distance == distance: