Skip to content

Commit

Permalink
Fix detection status when picking toolboards
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Jan 5, 2024
1 parent 260038b commit 7744bf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/setup-steps/mcu-preparation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const MCUPreparation: React.FC<StepScreenProps & ExtraProps> = (props) =>
? undefined
: (selectedPrinter?.driverCountRequired ?? 0) - (selectedPrinter?.defaults.toolheads.length ?? 1),
},
toolhead: toolhead?.serialize(),
});

const cards: SelectableBoard[] = useMemo(() => {
Expand Down
1 change: 1 addition & 0 deletions src/server/routers/mcu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export const mcuRouter = router({
driverCountRequired: z.number().optional(),
})
.optional(),
toolhead: SerializedToolheadConfiguration.optional(),
}),
)
.output(z.array(BoardWithDetectionStatus))
Expand Down

0 comments on commit 7744bf9

Please sign in to comment.