From: Joseph Coffland Date: Wed, 14 Apr 2021 06:12:44 +0000 (-0700) Subject: Handle pause duing seeking operation correctly. X-Git-Url: https://git.buildbotics.com/?a=commitdiff_plain;h=dbdfdd602ad881d08af2e011e4c36554b9999ec3;p=bbctrl-firmware Handle pause duing seeking operation correctly. --- diff --git a/CHANGELOG.md b/CHANGELOG.md index fdb916d..ad5f553 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/src/avr/src/seek.c b/src/avr/src/seek.c index 2c4b624..fd61217 100644 --- a/src/avr/src/seek.c +++ b/src/avr/src/seek.c @@ -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();