]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - dtt/ds1621.c
* Patches by Yuli Barcohen, 13 Jul 2003:
[people/ms/u-boot.git] / dtt / ds1621.c
index bf30e9c683cb51aa3ed50f17d2732fd87a459d5c..494818131f1a2090017a07722203aa743e2b6174 100644 (file)
@@ -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.