Skip to content

Commit 8d9fefb

Browse files
committed
Add stackup to possibleExtras
1 parent 4fe52a1 commit 8d9fefb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

SparkFunKiCadPanelizer/panelizer/panelizer.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def startPanelizer(self, args, board=None, ordering=None, logger=None):
126126

127127
# 'Extra' ordering instructions
128128
# Any PCB_TEXT containing any of these keywords will be copied into the ordering instructions
129-
possibleExtras = ['clean', 'Clean', 'CLEAN']
129+
possibleExtras = ['clean', 'Clean', 'CLEAN', 'stackup', 'Stackup', 'STACKUP']
130130

131131
# Permutations for Ordering Instructions
132132
possibleOrderingInstructions = [
@@ -428,7 +428,7 @@ def startPanelizer(self, args, board=None, ordering=None, logger=None):
428428
sparkxLogoSeen = False
429429
solderMask = None
430430
silkscreen = None
431-
numLayers = "Layers: {}".format(board.GetCopperLayerCount())
431+
copperLayers = "Layers: {}".format(board.GetCopperLayerCount()) # Should we trust the instructions or the tracks?!
432432
controlledImpedance = None
433433
finish = None
434434
thickness = None
@@ -568,8 +568,8 @@ def startPanelizer(self, args, board=None, ordering=None, logger=None):
568568
if "mask" in line or "Mask" in line or "MASK" in line:
569569
solderMask = line
570570
if "layers" in line or "Layers" in line or "LAYERS" in line:
571-
if numLayers is None: # Should we trust the instructions or the tracks?!
572-
numLayers = line
571+
if copperLayers is None: # Should we trust the instructions or the tracks?!
572+
copperLayers = line
573573
if "impedance" in line or "Impedance" in line or "IMPEDANCE" in line:
574574
controlledImpedance = line
575575
if "finish" in line or "Finish" in line or "FINISH" in line:
@@ -1191,9 +1191,9 @@ def startPanelizer(self, args, board=None, ordering=None, logger=None):
11911191
if silkscreen is None:
11921192
silkscreen = "Silkscreen: White (Default)"
11931193
report += silkscreen + "\n"
1194-
if numLayers is None:
1195-
numLayers = "Layers: 2 (Default)"
1196-
report += numLayers + "\n"
1194+
if copperLayers is None:
1195+
copperLayers = "Layers: 2 (Default)"
1196+
report += copperLayers + "\n"
11971197
if finish is None:
11981198
finish = "Finish: HASL Lead-free (Default)"
11991199
report += finish + "\n"
@@ -1236,12 +1236,12 @@ def startPanelizer(self, args, board=None, ordering=None, logger=None):
12361236
'Warning', wx.OK | wx.ICON_WARNING)
12371237
silkscreen = "Silkscreen: White (Default)"
12381238
oi.write(silkscreen + "\n")
1239-
if numLayers is None:
1239+
if copperLayers is None:
12401240
if wx.GetApp() is not None and orderingInstructionsSeen:
12411241
resp = wx.MessageBox("Number of layers not found!",
12421242
'Warning', wx.OK | wx.ICON_WARNING)
1243-
numLayers = "Layers: 2 (Default)"
1244-
oi.write(numLayers + "\n")
1243+
copperLayers = "Layers: 2 (Default)"
1244+
oi.write(copperLayers + "\n")
12451245
if finish is None:
12461246
if wx.GetApp() is not None and orderingInstructionsSeen:
12471247
resp = wx.MessageBox("PCB finish not found!",

0 commit comments

Comments
 (0)