channel: Fix to-physical setup in AnalogChannel._get_converter
authorW. Trevor King <wking@tremily.us>
Thu, 17 Jan 2013 14:00:20 +0000 (09:00 -0500)
committerW. Trevor King <wking@tremily.us>
Thu, 17 Jan 2013 14:00:20 +0000 (09:00 -0500)
commit27562b04a5480b8dc703703711f179e4d139ab15
tree5ac14469393eef6a276e09a7251080437a4f7c23
parentbc799c2383a3e56e4d9c19e5121ab73a2407d2f2
channel: Fix to-physical setup in AnalogChannel._get_converter

This fixes a bug introduced by

  commit ac38a7987800c3982ac363af5b7780885c88d3a1
  Author: W. Trevor King <wking@tremily.us>
  Date:   Fri Oct 19 09:53:22 2012 -0400

    calibration: support to-physical-only softcal boards.

where the converter's _from_physical was only initialized if there was
an error trying to determine its value.  Obviously, we should only be
initializing it if there *wasn't* an error.
pycomedi/channel.pyx