Ignore:
Timestamp:
09/12/11 14:52:57 (21 months ago)
Author:
thomas
Message:

Moving the synchronization function at the end of the slot, not to interfere with the slot timing. This is partially fixing #92.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • firmware/openos/openwsn/02a-MAC/IEEE802154E.c

    r1162 r1163  
    10781078      } 
    10791079       
    1080       // synchronize to the received packet 
    1081       synchronizePacket(ieee154e_vars.syncCapturedTime,&(ieee154e_vars.dataReceived->l2_nextORpreviousHop)); 
    1082        
    10831080      // check if ack requested 
    10841081      if (ieee802514_header.ackRequested==1) { 
     
    10861083         ieee154etimer_schedule(DURATION_rt5); 
    10871084      } else { 
     1085         // synchronize to the received packet 
     1086         synchronizePacket(ieee154e_vars.syncCapturedTime,&(ieee154e_vars.dataReceived->l2_nextORpreviousHop)); 
    10881087         // indicate reception to upper layer (no ACK asked) 
    10891088         notif_receive(ieee154e_vars.dataReceived); 
     
    12501249   // clear local variable 
    12511250   ieee154e_vars.ackToSend = NULL; 
     1251    
     1252   // synchronize to the received packet 
     1253   synchronizePacket(ieee154e_vars.syncCapturedTime,&(ieee154e_vars.dataReceived->l2_nextORpreviousHop)); 
    12521254    
    12531255   // inform upper layer of reception (after ACK sent) 
Note: See TracChangeset for help on using the changeset viewer.