Skip to content

Commit

Permalink
fix(step-generation): specify intermediate temperature for heater sha…
Browse files Browse the repository at this point in the history
…kers (#12245)

closes RAUT-330
  • Loading branch information
shlokamin authored Mar 7, 2023
1 parent 0e145ed commit 5db2f1d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 23 deletions.
14 changes: 0 additions & 14 deletions step-generation/src/__tests__/heaterShaker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,6 @@ describe('heaterShaker compound command creator', () => {
moduleId: 'heaterShakerId',
},
},
{
commandType: 'heaterShaker/waitForTemperature',
key: expect.any(String),
params: {
moduleId: 'heaterShakerId',
},
},
{
commandType: 'heaterShaker/setAndWaitForShakeSpeed',
key: expect.any(String),
Expand Down Expand Up @@ -160,13 +153,6 @@ describe('heaterShaker compound command creator', () => {
moduleId: 'heaterShakerId',
},
},
{
commandType: 'heaterShaker/waitForTemperature',
key: expect.any(String),
params: {
moduleId: 'heaterShakerId',
},
},
{
commandType: 'heaterShaker/setAndWaitForShakeSpeed',
key: expect.any(String),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export const waitForTemperature: CommandCreator<WaitForTemperatureArgs> = (
key: uuid(),
params: {
moduleId: module,
celsius: temperature,
},
},
],
Expand Down
9 changes: 0 additions & 9 deletions step-generation/src/commandCreators/compound/heaterShaker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { heaterShakerOpenLatch } from '../atomic/heaterShakerOpenLatch'
import { heaterShakerCloseLatch } from '../atomic/heaterShakerCloseLatch'
import { heaterShakerDeactivateHeater } from '../atomic/heaterShakerDeactivateHeater'
import { setTemperature } from '../atomic/setTemperature'
import { waitForTemperature } from '../atomic'
import { heaterShakerStopShake } from '../atomic/heaterShakerStopShake'
import { heaterShakerSetTargetShakeSpeed } from '../atomic/heaterShakerSetTargetShakeSpeed'

Expand Down Expand Up @@ -63,14 +62,6 @@ export const heaterShaker: CommandCreator<HeaterShakerArgs> = (
commandCreatorFnName: 'setTemperature',
})
)

commandCreators.push(
curryCommandCreator(waitForTemperature, {
module: args.module,
temperature: args.targetTemperature,
commandCreatorFnName: 'waitForTemperature',
})
)
}

if (args.rpm === null) {
Expand Down

0 comments on commit 5db2f1d

Please sign in to comment.