]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf2xx/rf230/RF230RadioP.nc
automaticaly call Packet.clear if user forgot to do so
[tinyos-2.x.git] / tos / chips / rf2xx / rf230 / RF230RadioP.nc
index 57ad57a9b4c48ace9f68173b733afd1783c3f997..db37bee3d07df52a59684eeb5a7137bbe345b16b 100644 (file)
@@ -189,6 +189,14 @@ implementation
                call Ieee154PacketLayer.setDestPan(msg, grp);
        }
 
+       command error_t ActiveMessageConfig.checkFrame(message_t* msg)
+       {
+               if( ! call Ieee154PacketLayer.isDataFrame(msg) )
+                       call Ieee154PacketLayer.createDataFrame(msg);
+
+               return SUCCESS;
+       }
+
 /*----------------- CsmaConfig -----------------*/
 
        async command bool CsmaConfig.requiresSoftwareCCA(message_t* msg)