[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420/transmit CC2420TransmitP.nc, 1.8, 1.9

kusy kusy at users.sourceforge.net
Fri Jul 11 12:21:26 PDT 2008


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/transmit
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv25054

Modified Files:
	CC2420TransmitP.nc 
Log Message:
fixed bug in accessing timesync offset

Index: CC2420TransmitP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/transmit/CC2420TransmitP.nc,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** CC2420TransmitP.nc	9 Jul 2008 16:23:27 -0000	1.8
--- CC2420TransmitP.nc	11 Jul 2008 19:21:23 -0000	1.9
***************
*** 269,273 ****
          call PacketTimeStamp.set(m_msg, time32);
          if (call PacketTimeSyncOffset.isSet(m_msg)) {
!            timesync_radio_t *timesync = (timesync_radio_t*)((void*)m_msg + call PacketTimeSyncOffset.get(m_msg));
             // set timesync event time as the offset between the event time and the SFD interrupt time (TEP  133)
             *timesync  -= time32;
--- 269,274 ----
          call PacketTimeStamp.set(m_msg, time32);
          if (call PacketTimeSyncOffset.isSet(m_msg)) {
!            nx_uint8_t *taddr = m_msg->data + (call PacketTimeSyncOffset.get(m_msg) - sizeof(cc2420_header_t));
!            timesync_radio_t *timesync = (timesync_radio_t*)taddr;
             // set timesync event time as the offset between the event time and the SFD interrupt time (TEP  133)
             *timesync  -= time32;



More information about the Tinyos-2-commits mailing list