diff options
author | Jesse Gilles <jgilles@multitech.com> | 2010-12-17 13:59:18 -0600 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2010-12-17 13:59:18 -0600 |
commit | 5d228515e773f12bc1d6e17a651bbb07740e0db5 (patch) | |
tree | 8635265b93acdd77e9bfac94aab560ac8b6715c1 /io-module | |
parent | d642226ebfc833ec80c2dd6a4f8197c2325ae334 (diff) | |
download | cdp-io-controller-5d228515e773f12bc1d6e17a651bbb07740e0db5.tar.gz cdp-io-controller-5d228515e773f12bc1d6e17a651bbb07740e0db5.tar.bz2 cdp-io-controller-5d228515e773f12bc1d6e17a651bbb07740e0db5.zip |
fix reading of dout pin state (invert to match output state)
Diffstat (limited to 'io-module')
-rw-r--r-- | io-module/mts_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c index c167b74..ebf8bea 100644 --- a/io-module/mts_io.c +++ b/io-module/mts_io.c @@ -957,7 +957,7 @@ static ssize_t mts_attr_show_dout(struct device *dev, mutex_lock(&spi_dout_mutex); - value = spi_dout_value & bit ? 1 : 0; + value = spi_dout_value & bit ? 0 : 1; mutex_unlock(&spi_dout_mutex); |