From 3dcd27dfee1b9cdedaf5b05bf1be9cad3ee477be Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 23 Jan 2012 16:17:46 -0500 Subject: [PATCH] Complete setpoint removal started with 1139d17967014ca0fe79773796dda182b3441f9f. --- pyafm/afm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyafm/afm.py b/pyafm/afm.py index b346275..35e8d66 100644 --- a/pyafm/afm.py +++ b/pyafm/afm.py @@ -157,12 +157,12 @@ class AFM (object): _LOG.error(('requested setpoint ({} bits) is larger than the ' 'maximum deflection value of {} bits' ).format(deflection, max_def)) - raise ValueError(setpoint) + raise ValueError(deflection) elif deflection < 0: _LOG.error(('requested setpoint ({} bits) is less than the ' 'minimum deflection value of 0 bits' ).format(deflection)) - raise ValueError(setpoint) + raise ValueError(deflection) def _stepper_approach_again(self, target_deflection, min_slope_ratio, far): _LOG.info('back off %d half steps and approach until deflection > %g' -- 2.26.2