Skip to content

Commit 3708bdd

Browse files
committed
Add a warning for non-zero gaps less than 0.3"
1 parent ae8dc9f commit 3708bdd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

SparkFunKiCadPanelizer/panelizer/panelizer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ def startPanelizer(self, args, board=None, ordering=None, logger=None):
327327
report += "Can not have Y gaps without vertical rails. Quitting.\n"
328328
sysExit = 2
329329
return sysExit, report
330+
if ((GAP_X > 0.0) and (GAP_X < 7.62)) or ((GAP_Y > 0.0) and (GAP_Y < 7.62)): # Check non-zero gaps are 0.3" for AOI
331+
report += "Gaps should be at least 0.3\" for AOI.\n"
332+
sysExit = 1
330333

331334
# Check exposed edge
332335
if EXPOSED_EDGE:

0 commit comments

Comments
 (0)