Skip to content

Commit

Permalink
fix plated hole outer diameter default to be 1.5mm (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar authored Nov 12, 2024
1 parent 44062f7 commit 011174b
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/fn/dip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const extendDipDef = (newDefaults: { w?: string; p?: string }) =>
// Default inner diameter and outer diameter
if (!v.id && !v.od) {
v.id = length.parse("1.0mm")
v.od = length.parse("1.2mm")
v.od = length.parse("1.5mm")
} else if (!v.id) {
v.id = v.od! * (1.0 / 1.2)
} else if (!v.od) {
Expand Down
2 changes: 1 addition & 1 deletion src/fn/pinrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const pinrow_def = z.object({
num_pins: z.number(),
p: length.default("0.1in").describe("pitch"),
id: length.default("1.0mm").describe("inner diameter"),
od: length.default("1.2mm").describe("outer diameter"),
od: length.default("1.5mm").describe("outer diameter"),
})

export const pinrow = (
Expand Down
2 changes: 1 addition & 1 deletion tests/__snapshots__/dip footprint.snap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 011174b

Please sign in to comment.