From 01e11d3e054ffacb320b1a0ba4c523f53bc61c68 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 28 Feb 2012 15:25:07 -0500 Subject: [PATCH] Fix deflection channel config extraction in AFM.move_just_onto_surface(). --- pyafm/afm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyafm/afm.py b/pyafm/afm.py index 35e8d66..fe3da22 100644 --- a/pyafm/afm.py +++ b/pyafm/afm.py @@ -83,10 +83,10 @@ class AFM (object): stepper_tolerance = 2*self.stepper.step_size axis = self.piezo.axis_by_name(self.axis_name) - defc = self.piezo._deflection_channel() + def_config = self.piezo.config.select_config('inputs', 'deflection') zero = _convert_volts_to_bits(axis.config['channel'], 0) - target_def = _convert_volts_to_bits(defc.config, setpoint) + target_def = _convert_volts_to_bits(def_config, setpoint) self._check_target_deflection(deflection=target_def) _LOG.debug('zero the %s piezo output' % self.axis_name) -- 2.26.2