summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--io-module/mts_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index aa6e46d..c167b74 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -911,9 +911,9 @@ static ssize_t mts_attr_store_dout(struct device *dev,
mutex_lock(&spi_dout_mutex);
if (value) {
- spi_dout_value |= bit;
- } else {
spi_dout_value &= ~bit;
+ } else {
+ spi_dout_value |= bit;
}
spi_writen(spi_dout_dev, &spi_dout_value, 1);