X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Frf212%2FRF212DriverLayerP.nc;h=43cf19cb078ad62aa2d40238845be7664dba197e;hb=8e1f9df3ad23a51121f1fc1b62f688f3a4d10628;hp=218066ea714d07ea5a64b54c4eb21b5c870c42a6;hpb=2b9a0a0e26d0b6b63808413e2835bdadf7faeac2;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc b/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc index 218066ea..43cf19cb 100644 --- a/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc +++ b/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc @@ -866,7 +866,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(rf212_header_t); }