summaryrefslogtreecommitdiff
path: root/gerbonara/rs274x.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/rs274x.py')
-rw-r--r--gerbonara/rs274x.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/rs274x.py b/gerbonara/rs274x.py
index 1559740..ad78ceb 100644
--- a/gerbonara/rs274x.py
+++ b/gerbonara/rs274x.py
@@ -131,7 +131,7 @@ class GerberFile(CamFile):
nonlocal cache, settings
if isinstance(aperture, apertures.ApertureMacroInstance):
macro = aperture.macro
- macro_def = macro.to_gerber(unit=settings.unit)
+ macro_def = macro.to_gerber(settings)
if macro_def not in cache:
cache[macro_def] = macro
@@ -283,7 +283,7 @@ class GerberFile(CamFile):
self.dedup_apertures()
- am_stmt = lambda macro: f'%AM{macro.name}*\n{macro.to_gerber(unit=settings.unit)}*\n%'
+ am_stmt = lambda macro: f'%AM{macro.name}*\n{macro.to_gerber(settings)}*\n%'
for macro in self.aperture_macros():
yield am_stmt(macro)