summaryrefslogtreecommitdiff
path: root/gerber/excellon_statements.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2014-10-06 23:52:57 -0400
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2014-10-06 23:52:57 -0400
commit2abb7159be80beb0565d35e856f3279d2f1f693b (patch)
tree92116e6eea02e40cc68215c13e837b610cc97644 /gerber/excellon_statements.py
parent22a6f87e94c1192b277a1353aefc7c0316f41f90 (diff)
downloadgerbonara-2abb7159be80beb0565d35e856f3279d2f1f693b.tar.gz
gerbonara-2abb7159be80beb0565d35e856f3279d2f1f693b.tar.bz2
gerbonara-2abb7159be80beb0565d35e856f3279d2f1f693b.zip
add tests
Diffstat (limited to 'gerber/excellon_statements.py')
-rw-r--r--gerber/excellon_statements.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerber/excellon_statements.py b/gerber/excellon_statements.py
index 09b72c1..caf1626 100644
--- a/gerber/excellon_statements.py
+++ b/gerber/excellon_statements.py
@@ -151,7 +151,7 @@ class ExcellonTool(ExcellonStatement):
else:
stmt += 'S%g' % self.rpm / 1000.
if self.diameter is not None:
- stmt += 'C%s' % decimal_string(self.diameter, 5, True)
+ stmt += 'C%s' % decimal_string(self.diameter, fmt[1], True)
if self.depth_offset is not None:
stmt += 'Z%s' % write_gerber_value(self.depth_offset, fmt, zs)
return stmt