fix: pass returnToOperational:true for shutdown/estop abort path

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
znetsixe
2026-04-14 12:01:49 +02:00
parent 510a4233e6
commit 11d196f363

View File

@@ -883,7 +883,7 @@ _callMeasurementHandler(measurementType, value, position, context) {
if (interruptible.has(sequenceName) &&
(currentState === "accelerating" || currentState === "decelerating")) {
this.logger.warn(`Sequence '${sequenceName}' requested during '${currentState}'. Aborting active movement.`);
this.state.abortCurrentMovement(`${sequenceName} sequence requested`);
this.state.abortCurrentMovement(`${sequenceName} sequence requested`, { returnToOperational: true });
await this._waitForOperational(2000);
}