[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/atm128/i2c
Atm128I2CMasterPacketP.nc, 1.6, 1.7
Fred Jiang
fredjiang at users.sourceforge.net
Thu Nov 1 11:10:39 PDT 2007
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128/i2c
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv17545
Modified Files:
Atm128I2CMasterPacketP.nc
Log Message:
syntax bug fixed
Index: Atm128I2CMasterPacketP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/atm128/i2c/Atm128I2CMasterPacketP.nc,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Atm128I2CMasterPacketP.nc 12 Oct 2007 22:30:26 -0000 1.6
--- Atm128I2CMasterPacketP.nc 1 Nov 2007 18:10:36 -0000 1.7
***************
*** 324,331 ****
if (state == I2C_ADDR) {
if (reading == TRUE) {
! call I2C.write(((packetAddr & 0x7f) << 1)) | ATM128_I2C_SLA_READ);
}
else
! call I2C.write(((packetAddr & 0x7f) << 1)) | ATM128_I2C_SLA_WRITE);
state = I2C_DATA;
call I2C.sendCommand();
--- 324,331 ----
if (state == I2C_ADDR) {
if (reading == TRUE) {
! call I2C.write(((packetAddr & 0x7f) << 1) | ATM128_I2C_SLA_READ);
}
else
! call I2C.write(((packetAddr & 0x7f) << 1) | ATM128_I2C_SLA_WRITE);
state = I2C_DATA;
call I2C.sendCommand();
More information about the Tinyos-2-commits
mailing list