Co-authored-by: osiu97 <osiu97@gmail.com> Reviewed-on: #19
This commit was merged in pull request #19.
This commit is contained in:
@@ -14,7 +14,7 @@ export default {
|
||||
get isRunning() { return isRunning; },
|
||||
stop() { isRunning = false; },
|
||||
|
||||
async run(sequence, spotsData, currentSteps1, currentSteps2, onStepComplete) {
|
||||
async run(sequence, spotsData, currentSteps1, currentSteps2, mode, onStepComplete) {
|
||||
if (isRunning) {
|
||||
UI.log('A sequence is already running.', 'warn');
|
||||
return false;
|
||||
@@ -55,7 +55,7 @@ export default {
|
||||
|
||||
UI.log(`Seq step: ${label}`, 'info');
|
||||
|
||||
const success = await Motion.goto(targetX, targetY, step.mode || 'direct');
|
||||
const success = await Motion.goto(targetX, targetY, mode || 'direct');
|
||||
if (!success) {
|
||||
isRunning = false;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user