]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/atm128/i2c/Atm128I2CMasterPacketP.nc
syntax bug fixed
[tinyos-2.x.git] / 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();
       }