Fix typo target_def -> target_deflection.
authorW. Trevor King <wking@drexel.edu>
Wed, 20 Apr 2011 18:46:04 +0000 (14:46 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 20 Apr 2011 18:46:04 +0000 (14:46 -0400)
pyafm.py

index 1d359de81289516f880321268a17252749f7fee0..d4933168032b4375324fbb422b6b205d949a8578 100644 (file)
--- a/pyafm.py
+++ b/pyafm.py
@@ -164,7 +164,7 @@ class AFM (object):
             LOG.debug('additional surface location attempt')
             try:
                 pos = self.piezo.get_surface_position(
-                    axis_name=self.axis_name, max_deflection=target_def)
+                    axis_name=self.axis_name, max_deflection=target_deflection)
                 return pos
             except _SurfaceError, e:
                 LOG.info(e)