gcode: Convert get_status() homing_xpos to use a namedtuple

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-08-15 17:33:48 -04:00
parent 39261d884d
commit c0daf43d2f
2 changed files with 2 additions and 4 deletions

View File

@ -118,7 +118,7 @@ gcode:
[menu __main __tune __offsetz]
type: input
name: Offset Z:{'%05.3f' % menu.input}
input: {printer.gcode.homing_zpos}
input: {printer.gcode.homing_origin.z}
input_min: -5
input_max: 5
input_step: 0.005

View File

@ -191,9 +191,7 @@ class GCodeParser:
'base_ypos': self.base_position[1],
'base_zpos': self.base_position[2],
'base_epos': self.base_position[3],
'homing_xpos': self.homing_position[0],
'homing_ypos': self.homing_position[1],
'homing_zpos': self.homing_position[2],
'homing_origin': homing.Coord(*self.homing_position),
'gcode_position': homing.Coord(*move_position),
}
def dump_state(self):