Skip to content

Commit

Permalink
fix(shared-data): fix getPipetteSpecsV2 finding PEEK pipette specs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 authored Jan 17, 2025
1 parent bb78046 commit 27d2dc8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shared-data/js/pipettes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ const getHighestVersion = (
path: string,
pipetteModel: string,
channels: Channels | null,
oemString: string,
majorVersion: number,
highestVersion: string
): string => {
Expand All @@ -174,10 +175,10 @@ const getHighestVersion = (
// and make sure the given model, channels, and major/minor versions
// are found in the path
if (
minorPathVersion > minorHighestVersion &&
minorPathVersion >= minorHighestVersion &&
path.includes(`${majorPathVersion}_${minorPathVersion}`) &&
path.includes(pipetteModel) &&
path.includes(channels ?? '')
path.includes(channels != null ? `${channels}${oemString}` : '')
) {
highestVersion = `${majorPathVersion}_${minorPathVersion}`
}
Expand Down Expand Up @@ -239,6 +240,7 @@ export const getPipetteSpecsV2 = (
path,
pipetteModel,
channels,
oemString,
majorVersion,
highestVersion
)
Expand Down

0 comments on commit 27d2dc8

Please sign in to comment.