Skip to content

Commit

Permalink
Revert "enhance: reorder pins"
Browse files Browse the repository at this point in the history
This reverts commit 174296c.
  • Loading branch information
andelf committed Jun 27, 2024
1 parent ad96021 commit 2906c2f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hpm-metapac-gen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@ impl Gen {
writeln!(&mut extra, "}}").unwrap();

writeln!(&mut extra, "pub mod pins {{").unwrap();
let mut pins = core.pins.clone();
pins.sort_by_key(|r| r.index);
for pin in &pins {
for pin in &core.pins {
writeln!(
&mut extra,
" pub const {}: usize = {};",
Expand Down

0 comments on commit 2906c2f

Please sign in to comment.