Skip to content

Commit

Permalink
Merge pull request #4 from niclashoyer/pad-connect
Browse files Browse the repository at this point in the history
Add connect pad type
  • Loading branch information
adamheinrich authored May 21, 2019
2 parents b1b62bf + dabf00e commit f958d23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/footprint/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,8 @@ pub enum PadType {
Pth,
/// non-plated through-hole
NpPth,
/// connector
Conn,
}

impl PadType {
Expand All @@ -808,6 +810,7 @@ impl PadType {
"smd" => Ok(PadType::Smd),
"thru_hole" => Ok(PadType::Pth),
"np_thru_hole" => Ok(PadType::NpPth),
"connect" => Ok(PadType::Conn),
x => Err(format!("unknown PadType {}", x).into()),
}
}
Expand Down
1 change: 1 addition & 0 deletions src/footprint/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ impl IntoSexp for PadType {
PadType::Smd => "smd",
PadType::Pth => "thru_hole",
PadType::NpPth => "np_thru_hole",
PadType::Conn => "connect",
}.into()
}
}
Expand Down

0 comments on commit f958d23

Please sign in to comment.