Skip to content

Commit

Permalink
fix: add support for the new EasyEDA2Kicad fields format (#185)
Browse files Browse the repository at this point in the history
* update part number checks to work with new easyedatokicad format
* bump version
  • Loading branch information
NanashiTheNameless authored Jan 12, 2025
1 parent 5880f10 commit db3878b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ Add an 'LCSC Part #'* field with the LCSC component part number to the symbol's
<img src="https://github.com/bennymeg/JLC-Plugin-for-KiCad/blob/master/assets/mpn.png?raw=true" height=420>

#### Primary Fields*:
| 'LCSC Part #' | 'JLCPCB Part #' |
| --- | --- |
| 'LCSC Part #' | 'LCSC Part' | 'JLCPCB Part #' | 'JLCPCB Part' |
| --- | --- | --- | --- |

_The fields will be query in the order denoted above._

Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
],
"versions": [
{
"version": "5.0.0",
"version": "5.0.1",
"status": "stable",
"kicad_version": "6.00"
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def _get_position_offset_from_db(self, footprint: str) -> Tuple[float, float]:

def _get_mpn_from_footprint(self, footprint) -> str:
''''Get the MPN/LCSC stock code from standard symbol fields.'''
keys = ['LCSC Part #', 'JLCPCB Part #']
keys = ['LCSC Part #', 'LCSC Part', 'JLCPCB Part #', 'JLCPCB Part']
fallback_keys = ['LCSC', 'JLC', 'MPN', 'Mpn', 'mpn']

if footprint_has_field(footprint, 'dnp'):
Expand Down

0 comments on commit db3878b

Please sign in to comment.