(see the discussin with Steve McKown in tinyos-devel on 02/22/09)
Committed on the Free edition of March Hare Software CVSNT Server.
Upgrade to CVS Suite for more features and support:
http://march-hare.com/cvsnt/
inline uint32_t getTime32(uint16_t time)
{
- uint32_t recent_time=call BackoffTimer.getNow();
- return recent_time + (int16_t)(time - recent_time);
+ uint32_t recent_time = call BackoffTimer.getNow();
+
+ // time is always in the past
+ return recent_time - (uint16_t)(recent_time - time);
}
/**