From d50ef0f97511c15dfc438e7bdadd8f0961ee7201 Mon Sep 17 00:00:00 2001 From: Andrei Date: Thu, 20 May 2021 08:48:40 +0300 Subject: [PATCH] fix footprint names in iBom --- bin/gen_iBOM.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/gen_iBOM.py b/bin/gen_iBOM.py index 132c83a..b41a902 100644 --- a/bin/gen_iBOM.py +++ b/bin/gen_iBOM.py @@ -276,7 +276,7 @@ def readFootprints(bomPath, cplPath, footprintsPath, yInvert): print("* Skipping an empty footprint for (" + row[1] + ")...") continue bb = row[1].split(", ") - bomlut.append({ "value": row[0], "refs": [] }) + bomlut.append({ "value": row[0], "fp": row[2], "refs": [] }) idx = len(bomlut) - 1 for b in bb: bom[b] = { "fp": row[2], "idx": idx } @@ -333,7 +333,7 @@ def readFootprints(bomPath, cplPath, footprintsPath, yInvert): bomItem = [ len(refs), b["value"], - fpname, + b["fp"], refs, [] ]