From 4dbe21a4ac7cec87c0a3d46b12ebf5f21e4f2d04 Mon Sep 17 00:00:00 2001 From: fredjiang Date: Thu, 1 Nov 2007 18:10:36 +0000 Subject: [PATCH] syntax bug fixed --- tos/chips/atm128/i2c/Atm128I2CMasterPacketP.nc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tos/chips/atm128/i2c/Atm128I2CMasterPacketP.nc b/tos/chips/atm128/i2c/Atm128I2CMasterPacketP.nc index 648da140..35cf2293 100644 --- a/tos/chips/atm128/i2c/Atm128I2CMasterPacketP.nc +++ b/tos/chips/atm128/i2c/Atm128I2CMasterPacketP.nc @@ -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(); } -- 2.39.2