Handle pause duing seeking operation correctly.
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Wed, 14 Apr 2021 06:12:44 +0000 (23:12 -0700)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Wed, 14 Apr 2021 06:12:44 +0000 (23:12 -0700)
CHANGELOG.md
src/avr/src/seek.c

index fdb916dff67632bf98d1c98d99481c9c2fc0db64..ad5f553776926ff74629cb3c58df0c1d305fcde1 100644 (file)
@@ -24,6 +24,7 @@ Buildbotics CNC Controller Firmware Changelog
  - Fix bug where rehoming fails after stop. #294
  - Fixed splash screen centering.
  - Much improved onscreen keyboard for touch screen operation.
+ - Handle pause duing seeking operation correctly.
 
 ## v0.4.16
  - Improved axis under/over warning tooltip.
index 2c4b6244a7d18e871f92618e384173ab9dee3fc6..fd61217e31aa7b7d754c39fcb87099e5826cb574 100644 (file)
@@ -114,7 +114,8 @@ static void _done() {
 void seek_end() {
   if (!seek.active) return;
 
-  if (!(SEEK_FOUND & seek.flags) && (SEEK_ERROR & seek.flags))
+  if (!(SEEK_FOUND & seek.flags) && (SEEK_ERROR & seek.flags) &&
+      state_get() != STATE_STOPPING)
     estop_trigger(STAT_SEEK_NOT_FOUND);
 
   _done();