gcode: Convert get_status() homing_xpos to use a namedtuple
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
39261d884d
commit
c0daf43d2f
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue