Skip to content

Commit

Permalink
Look up the right board in mcu.detect procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Jan 5, 2024
1 parent 88e7581 commit 6633c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/routers/mcu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const mcuRouter = router({
message: `No supported board exists for the path ${input.boardPath}`,
});
}
return detect(ctx.board);
return detect(ctx.board, ctx.toolhead);
}),
unidentifiedDevices: mcuProcedure.query(async ({ ctx }) => {
const detected = ctx.boards.filter((b) => b.detected).map((b) => fs.realpathSync(getBoardSerialPath(b)));
Expand Down

0 comments on commit 6633c05

Please sign in to comment.