From 0033ad82dfc88c01374e0730316f02bea3088849 Mon Sep 17 00:00:00 2001 From: C3MA Room Date: Fri, 12 Apr 2024 20:54:13 +0200 Subject: [PATCH] Workaround for one-drill parameter --- tuer/gerber/generatePCB.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tuer/gerber/generatePCB.sh b/tuer/gerber/generatePCB.sh index 7842be1..534ca0d 100755 --- a/tuer/gerber/generatePCB.sh +++ b/tuer/gerber/generatePCB.sh @@ -5,4 +5,7 @@ MILLSPEED=600 MILLFEED=200 PROJECT=tuer -pcb2gcode --metric --onedrill --back $PROJECT-B_Cu.gbr --cutter-diameter 0.2 --zsafe 5 --zchange 10 --zwork -0.01 --offset 0.02 --mill-feed $MILLFEED --mill-speed $MILLSPEED --drill $PROJECT.drl --zdrill -2.5 --drill-feed $MILLFEED --drill-speed $MILLSPEED --basename $PROJECT +pcb2gcode --metric --back $PROJECT-B_Cu.gbr --cutter-diameter 0.2 --zsafe 5 --zchange 10 --zwork -0.01 --offset 0.02 --mill-feed $MILLFEED --mill-speed $MILLSPEED --drill $PROJECT.drl --zdrill -2.5 --drill-feed $MILLFEED --drill-speed $MILLSPEED --basename $PROJECT +# one-drill parameter workaround +sed ${PROJECT}_drill.ngc -e "s/^T[0-9]$/T1/g" > ${PROJECT}_drillOne.ngc +mv ${PROJECT}_drillOne.ngc ${PROJECT}_drill.ngc