]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
syntax bug fixed
authorfredjiang <fredjiang>
Thu, 1 Nov 2007 18:10:36 +0000 (18:10 +0000)
committerfredjiang <fredjiang>
Thu, 1 Nov 2007 18:10:36 +0000 (18:10 +0000)
tos/chips/atm128/i2c/Atm128I2CMasterPacketP.nc

index 648da14084da286191737f702d366937db27b5fa..35cf22939227927221baf71973c124df5cb058eb 100644 (file)
@@ -323,10 +323,10 @@ implementation {
       }
       if (state == I2C_ADDR) {
        if (reading == TRUE) {
-         call I2C.write(((packetAddr & 0x7f) << 1)) | ATM128_I2C_SLA_READ);
+         call I2C.write(((packetAddr & 0x7f) << 1) | ATM128_I2C_SLA_READ);
        }
        else
-         call I2C.write(((packetAddr & 0x7f) << 1)) | ATM128_I2C_SLA_WRITE);
+         call I2C.write(((packetAddr & 0x7f) << 1) | ATM128_I2C_SLA_WRITE);
        state = I2C_DATA;
        call I2C.sendCommand();
       }