]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf2xx/rf230/RF230DriverHwAckP.nc
fix the max packet length assert
[tinyos-2.x.git] / tos / chips / rf2xx / rf230 / RF230DriverHwAckP.nc
index 790e79ed9dff0df02328d912c874f6b5de74d01d..71dc3caa55256a9f72aecd66b9769f17ff9e1436 100644 (file)
@@ -886,7 +886,7 @@ tasklet_async command uint8_t RadioState.getChannel()
 
        async command uint8_t RadioPacket.maxPayloadLength()
        {
-               ASSERT( call Config.maxPayloadLength() <= 125 );
+               ASSERT( call Config.maxPayloadLength() - sizeof(rf230_header_t) <= 125 );
 
                return call Config.maxPayloadLength() - sizeof(rf230_header_t);
        }