X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Flayers%2FTimeSyncMessageLayerP.nc;h=b7e9b4d213e162d8fa1f69395fdcc3d9f049fe4a;hb=ec026c9e6d938b6ef34f8cc1d62386a7ee237860;hp=e8698976a9174b4ce92a8027295fadb2feafc741;hpb=99bac95aefd1f5f04275c97503ed9bc222637110;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/layers/TimeSyncMessageLayerP.nc b/tos/chips/rf2xx/layers/TimeSyncMessageLayerP.nc index e8698976..b7e9b4d2 100644 --- a/tos/chips/rf2xx/layers/TimeSyncMessageLayerP.nc +++ b/tos/chips/rf2xx/layers/TimeSyncMessageLayerP.nc @@ -106,7 +106,7 @@ implementation inline command bool AMPacket.isForMe(message_t* msg) { - return call SubAMPacket.isForMe(msg) && call SubAMPacket.type(msg) == TIMESYNC_AMTYPE; + return call SubAMPacket.isForMe(msg) && call SubAMPacket.type(msg) == AM_TIMESYNCMSG; } inline command am_addr_t AMPacket.destination(message_t* msg)