Correct axis.channel_config -> axis.axis_channel_config typo.
authorW. Trevor King <wking@drexel.edu>
Tue, 19 Apr 2011 17:54:48 +0000 (13:54 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 19 Apr 2011 17:54:48 +0000 (13:54 -0400)
pyafm.py

index c16b0b8d79fafffac4dd591507333ee98027af32..d46a935cd3521fd5f739314e6d8b9f46d0cec0c4 100644 (file)
--- a/pyafm.py
+++ b/pyafm.py
@@ -70,7 +70,7 @@ class AFM (object):
         axis = self.piezo.axis_by_name(self.axis_name)
 
         zero = _convert_volts_to_bits(axis.axis_channel_config, 0)
-        target_def = _convert_volts_to_bits(axis.channel_config, setpoint)
+        target_def = _convert_volts_to_bits(axis.axis_channel_config, setpoint)
 
         LOG.debug('zero the %s piezo output' % self.axis_name)
         self.piezo.jump(axis_name=self.axis_name, position=zero)