X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Ftda5250%2Fmac%2FCsmaMacP.nc;fp=tos%2Fchips%2Ftda5250%2Fmac%2FCsmaMacP.nc;h=2b8b57fecd8f93836c518f94b939edaccd3a8996;hb=9092b3c0aa9215dff07b3465a88eb706e3e2193f;hp=2a236528e5b090301e2a242f2342d126118f2071;hpb=96f3ce6107cdafa0e5ac33072872ea65d8da5ecb;p=tinyos-2.x.git diff --git a/tos/chips/tda5250/mac/CsmaMacP.nc b/tos/chips/tda5250/mac/CsmaMacP.nc index 2a236528..2b8b57fe 100644 --- a/tos/chips/tda5250/mac/CsmaMacP.nc +++ b/tos/chips/tda5250/mac/CsmaMacP.nc @@ -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() {