X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Ftda5250%2Fmac%2FCsmaMacP.nc;h=e612c2f5ee039fba77bf56c88eac8858e6a62d00;hb=e714e397b4edbe93882af65c4cb3014ceb477fe9;hp=e19e50d145dbd4f957d17994ebf4b046328c984a;hpb=4c72ab7118395fe791aef9aafe29d501a94f6967;p=tinyos-2.x.git diff --git a/tos/chips/tda5250/mac/CsmaMacP.nc b/tos/chips/tda5250/mac/CsmaMacP.nc index e19e50d1..e612c2f5 100644 --- a/tos/chips/tda5250/mac/CsmaMacP.nc +++ b/tos/chips/tda5250/mac/CsmaMacP.nc @@ -107,8 +107,8 @@ implementation TOKEN_ACK_FLAG = 64, TOKEN_ACK_MASK = 0x3f, INVALID_SNR = 0xffff, - MSG_TABLE_ENTRIES=20, - MAX_AGE=2*MAX_LONG_RETRY*MAX_SHORT_RETRY, + MSG_TABLE_ENTRIES=16, + MAX_AGE=0xff, }; /**************** Module Global Variables *****************/ @@ -167,7 +167,7 @@ implementation unsigned i; atomic { for(i = 0; i < MSG_TABLE_ENTRIES; i++) { - if(knownMsgTable[i].age <= MAX_AGE) ++knownMsgTable[i].age; + if(knownMsgTable[i].age < MAX_AGE) ++knownMsgTable[i].age; } } }