]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf2xx/layers/TimeSyncMessageLayerP.nc
Use the AM_TIMESYNCMSG name for the active message ID used by all time sync messages
[tinyos-2.x.git] / tos / chips / rf2xx / layers / TimeSyncMessageLayerP.nc
index e8698976a9174b4ce92a8027295fadb2feafc741..b7e9b4d213e162d8fa1f69395fdcc3d9f049fe4a 100644 (file)
@@ -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)