From dbdfdd602ad881d08af2e011e4c36554b9999ec3 Mon Sep 17 00:00:00 2001 From: Joseph Coffland Date: Tue, 13 Apr 2021 23:12:44 -0700 Subject: [PATCH] Handle pause duing seeking operation correctly. --- CHANGELOG.md | 1 + src/avr/src/seek.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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(); -- 2.27.0