summaryrefslogtreecommitdiff
path: root/dtt
diff options
context:
space:
mode:
Diffstat (limited to 'dtt')
-rw-r--r--dtt/ds1621.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dtt/ds1621.c b/dtt/ds1621.c
index bf30e9c..4948181 100644
--- a/dtt/ds1621.c
+++ b/dtt/ds1621.c
@@ -85,7 +85,7 @@ int dtt_write(int sensor, int reg, int val)
* Calculate sensor address and register.
*
*/
- sensor = DTT_I2C_DEV_CODE + (sensor & sensor);
+ sensor = DTT_I2C_DEV_CODE + (sensor & 0x07);
/*
* Handle various data sizes.