From: W. Trevor King Date: Mon, 23 Jan 2012 21:17:46 +0000 (-0500) Subject: Complete setpoint removal started with 1139d17967014ca0fe79773796dda182b3441f9f. X-Git-Tag: v0.4~37 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3dcd27dfee1b9cdedaf5b05bf1be9cad3ee477be;p=pyafm.git Complete setpoint removal started with 1139d17967014ca0fe79773796dda182b3441f9f. --- 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'