X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fmac%2Ftkn154%2FBeaconSynchronizeP.nc;h=e7c39110a2a2f6cba0bc48281ddebd4e3dd0b6f9;hb=0bb0714d9edef64cc5a201f492e4d4ba9ed29fe9;hp=29de02739e3f2d056cf39c0b5dad2daae05ae3ce;hpb=ac398b601ae246a6d75d8fe3863effd72455b1e4;p=tinyos-2.x.git diff --git a/tos/lib/mac/tkn154/BeaconSynchronizeP.nc b/tos/lib/mac/tkn154/BeaconSynchronizeP.nc index 29de0273..e7c39110 100644 --- a/tos/lib/mac/tkn154/BeaconSynchronizeP.nc +++ b/tos/lib/mac/tkn154/BeaconSynchronizeP.nc @@ -346,7 +346,7 @@ implementation call Debug.log(LEVEL_INFO, SyncP_BEACON_RX, m_lastBeaconRxTime, timestamp, mhr[2]); m_numGtsSlots = (payload[2] & 7); gtsFieldLength = 1 + ((m_numGtsSlots > 0) ? 1 + m_numGtsSlots * 3: 0); - m_lastBeaconRxTime = timestamp + IEEE154_SYNC_SYMBOL_OFFSET - IEEE154_SYMBOLS_PER_OCTET - IEEE154_PREAMBLE_LENGTH; + m_lastBeaconRxTime = timestamp; m_finalCapSlot = (payload[1] & 0x0F); m_sfSlotDuration = (((uint32_t) 1) << ((payload[0] & 0xF0) >> 4)) * IEEE154_aBaseSlotDuration; memcpy(m_gtsField, &payload[2], gtsFieldLength);