summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/cam.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/gerber/cam.py')
-rw-r--r--gerbonara/gerber/cam.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/gerber/cam.py b/gerbonara/gerber/cam.py
index 42a5848..6fe5f9b 100644
--- a/gerbonara/gerber/cam.py
+++ b/gerbonara/gerber/cam.py
@@ -98,7 +98,7 @@ class FileSettings:
""" Convert a floating point number to a Gerber/Excellon-formatted string. """
if unit is not None:
- value = self.unit.from(unit, value)
+ value = self.unit(value, unit)
integer_digits, decimal_digits = self.number_format
if integer_digits is None: