]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/ds2782/HplDS2782LogicP.nc
Changed the chip wiring of the RV8564 and DS2782 chips on Mulle compatible with the...
[tinyos-2.x.git] / tos / chips / ds2782 / HplDS2782LogicP.nc
index dcd0266b9bc526273db426e57dc572b443192943..4040cf6275c8faee39fbf427fc5aea33e1a92e7c 100644 (file)
@@ -247,9 +247,9 @@ implementation {
 
   event void I2CResource.granted() {
     if (read) {
-      call I2CPacket.write(I2C_START,devAddr,1,mI2CBuffer);
+      call I2CPacket.write(I2C_START | I2C_STOP,devAddr,1,mI2CBuffer);
     } else {
-      call I2CPacket.write((I2C_START | I2C_STOP),devAddr,2,mI2CBuffer);
+      call I2CPacket.write(I2C_START | I2C_STOP,devAddr,2,mI2CBuffer);
     }
   }