diff options
Diffstat (limited to 'dtt/ds1621.c')
-rw-r--r-- | dtt/ds1621.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dtt/ds1621.c b/dtt/ds1621.c index bf30e9c683..494818131f 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. |