]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/tda5250/mac/CsmaMacP.nc
keep sfd time
[tinyos-2.x.git] / tos / chips / tda5250 / mac / CsmaMacP.nc
index 2a236528e5b090301e2a242f2342d126118f2071..2b8b57fecd8f93836c518f94b939edaccd3a8996 100644 (file)
@@ -303,7 +303,7 @@ implementation
     task void postponeReRx() {
         call ReRxTimer.startOneShot(5000);
     }
-    
+
     uint16_t backoff(uint8_t counter) {
         uint16_t mask = BACKOFF_MASK >> (MAX_LONG_RETRY - counter);
         return (call Random.rand16() & mask);
@@ -962,7 +962,11 @@ implementation
         }
     }
     
-    async event void RadioTimeStamping.transmittedSFD( uint16_t time, message_t* p_msg ) {}
+    async event void RadioTimeStamping.transmittedSFD( uint16_t time, message_t* p_msg ) {
+        if((macState == TX) && (p_msg == txBufPtr)) {
+            // to do
+        }
+    }
 
     /***** Rssi Resource events ******************/
     event void RssiAdcResource.granted() {