X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf230%2FRF230PacketP.nc;h=d2f2c150af9d5580b2e3f9e4ad975bd22c91f388;hb=aede9c82ea9e35ba71582bdee4075b8ca397dcbe;hp=6bfb2c2d903cde59f684b3ddad7ee526c6f618b6;hpb=e90b80efe22dc89b94b4d032715269849ff6796e;p=tinyos-2.x.git diff --git a/tos/chips/rf230/RF230PacketP.nc b/tos/chips/rf230/RF230PacketP.nc index 6bfb2c2d..d2f2c150 100644 --- a/tos/chips/rf230/RF230PacketP.nc +++ b/tos/chips/rf230/RF230PacketP.nc @@ -22,6 +22,7 @@ */ #include +#include module RF230PacketP { @@ -250,7 +251,7 @@ implementation async command uint8_t PacketTimeSyncOffset.get(message_t* msg) { - return call IEEE154Packet.getLength(msg) - PACKET_LENGTH_INCREASE - sizeof(timesync_footer_t); + return call IEEE154Packet.getLength(msg) - PACKET_LENGTH_INCREASE - sizeof(timesync_absolute_t); } async command void PacketTimeSyncOffset.clear(message_t* msg)