Skip to content

Commit

Permalink
fix(app): home leftZ for 96 channel attach flow in case mount falls (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 authored May 25, 2023
1 parent 6f72258 commit 533d120
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/src/organisms/PipetteWizardFlows/Results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import {
} from '@opentrons/components'
import {
getPipetteNameSpecs,
LEFT,
LoadedPipette,
MotorAxis,
NINETY_SIX_CHANNEL,
} from '@opentrons/shared-data'
import { InProgressModal } from '../../molecules/InProgressModal/InProgressModal'
Expand Down Expand Up @@ -131,7 +133,11 @@ export const Results = (props: ResultsProps): JSX.Element => {
flowType === FLOWS.ATTACH &&
currentStepIndex !== totalStepCount
) {
const axis = mount === 'left' ? 'leftPlunger' : 'rightPlunger'
let axes: MotorAxis = mount === LEFT ? ['leftPlunger'] : ['rightPlunger']
// TODO: (sb)5/25/23 Stop homing leftZ for 96 once motor is disabled
if (attachedPipettes[mount]?.instrumentName === 'p1000_96') {
axes = ['leftPlunger', 'leftZ']
}
chainRunCommands(
[
{
Expand All @@ -146,7 +152,7 @@ export const Results = (props: ResultsProps): JSX.Element => {
{
commandType: 'home' as const,
params: {
axes: [axis],
axes: axes,
},
},
{
Expand Down

0 comments on commit 533d120

Please sign in to comment.