X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Frf230%2FRF230DriverLayerP.nc;h=114ac13dd4f4b206534b44330deb726662b11b96;hb=08afe408f0de413def02f87ad4eb6bd4734e8b60;hp=22c969cb8b904ee830f1f57ec21aed5b4de753f2;hpb=d9d0a1f783ce2c6eaf95ed2f23a99769e5e82878;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/rf230/RF230DriverLayerP.nc b/tos/chips/rf2xx/rf230/RF230DriverLayerP.nc index 22c969cb..114ac13d 100644 --- a/tos/chips/rf2xx/rf230/RF230DriverLayerP.nc +++ b/tos/chips/rf2xx/rf230/RF230DriverLayerP.nc @@ -458,7 +458,7 @@ implementation atomic { call SLP_TR.set(); - time = call RadioAlarm.getNow() + TX_SFD_DELAY; + time = call RadioAlarm.getNow(); } call SLP_TR.clr(); #endif @@ -493,12 +493,12 @@ implementation atomic { call SLP_TR.set(); - time = call RadioAlarm.getNow() + TX_SFD_DELAY; + time = call RadioAlarm.getNow(); } call SLP_TR.clr(); #endif - time32 += (int16_t)(time) - (int16_t)(time32); + time32 += (int16_t)(time + TX_SFD_DELAY) - (int16_t)(time32); if( timesync != 0 ) *(timesync_relative_t*)timesync = (*(timesync_absolute_t*)timesync) - time32;