Move position and deflection initialization before step direction check.
authorW. Trevor King <wking@drexel.edu>
Mon, 23 Jan 2012 21:31:02 +0000 (16:31 -0500)
committerW. Trevor King <wking@drexel.edu>
Mon, 23 Jan 2012 21:31:02 +0000 (16:31 -0500)
commit73241d31fa558cba3713db92ba07d11b6dc130b0
treec293c1e897a48e0ed19b2409aecf78c64f28beae
parent50524d9dc22b397c78dc8caea783f83e5bad3937
Move position and deflection initialization before step direction check.

Otherwise, if position is not specified, step would always end up
being negative, and position would always end up as zero.  Now
position will end up being the extreme in the initial step direction,
as advertised.
pypiezo/afm.py