Fix zeroing homed axis after jog.
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Sat, 19 Jan 2019 04:20:25 +0000 (20:20 -0800)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Sat, 19 Jan 2019 04:20:25 +0000 (20:20 -0800)
CHANGELOG.md
src/py/bbctrl/Mach.py

index 55663650816ec3bbc4b6f3a55d08fb5c46b1e9d9..fb3d192478e6394477661e96cd3634fd766e5af4 100644 (file)
@@ -4,6 +4,8 @@ Buildbotics CNC Controller Firmware Changelog
 ## v0.4.5
  - Fix for random errors while running VFD.
  - Fix bug where planner would not continue after optional pause (M1).
+ - Fix lockup on invalid no move probe G38.x. #183
+ - Fix zeroing homed axis after jog.
 
 ## v0.4.4
  - Write version to log file.
index 7a701aacb2c0b03154ebcb1d1e3cd2ced7a1748d..15339551791ef51bd50fa6af4dfb54c1d11e25d1 100644 (file)
@@ -130,6 +130,7 @@ class Mach(Comm):
     def _update_cycle(self):
         if (self._get_cycle() != 'idle' and self._is_ready() and
             not self.planner.is_busy() and not super().is_active()):
+            self.planner.update_position()
             self.ctrl.state.set('cycle', 'idle')
 
 
@@ -157,6 +158,7 @@ class Mach(Comm):
 
             # Return from jogging cycle
             if self._get_cycle() == 'jogging':
+                self.planner.update_position()
                 self.ctrl.state.set('cycle', self.last_cycle)
 
         # Automatically unpause after seek or stop hold