diff options
author | Janar Sööt <janar.soot@gmail.com> | 2018-09-17 15:25:28 +0300 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2018-09-17 08:25:28 -0400 |
commit | f7f78433a2427dbb96c350824f103cf08f1167db (patch) | |
tree | 5769beb26736f482b689ebb875ac7b5e7ec7a17d /klippy/gcode.py | |
parent | 48ddfba4154327363cd6b70d9dea0d4629ba7b03 (diff) | |
download | kutter-f7f78433a2427dbb96c350824f103cf08f1167db.tar.gz kutter-f7f78433a2427dbb96c350824f103cf08f1167db.tar.xz kutter-f7f78433a2427dbb96c350824f103cf08f1167db.zip |
gcode: modify get_status method to output more info (#651)
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r-- | klippy/gcode.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py index 58602304..ee293507 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -96,7 +96,22 @@ class GCodeParser: return False, "gcodein=%d" % (self.bytes_read,) def get_status(self, eventtime): busy = self.is_processing_data - return {'speed_factor': self.speed_factor * 60., 'busy': busy} + return { + 'speed_factor': self.speed_factor * 60., + 'extrude_factor': self.extrude_factor, + 'busy': busy, + 'last_xpos': self.last_position[0], + 'last_ypos': self.last_position[1], + 'last_zpos': self.last_position[2], + 'last_epos': self.last_position[3], + 'base_xpos': self.base_position[0], + '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] + } def printer_state(self, state): if state == 'shutdown': if not self.is_printer_ready: |