X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Frf230%2FRF230DriverLayerP.nc;h=b1a2670e54654fa37b533e705417711c5bb69720;hb=8e1f9df3ad23a51121f1fc1b62f688f3a4d10628;hp=114ac13dd4f4b206534b44330deb726662b11b96;hpb=08afe408f0de413def02f87ad4eb6bd4734e8b60;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/rf230/RF230DriverLayerP.nc b/tos/chips/rf2xx/rf230/RF230DriverLayerP.nc index 114ac13d..b1a2670e 100644 --- a/tos/chips/rf2xx/rf230/RF230DriverLayerP.nc +++ b/tos/chips/rf2xx/rf230/RF230DriverLayerP.nc @@ -880,7 +880,7 @@ implementation 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); }