X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=apps%2Ftests%2FRadioStress%2FRadioStressC.nc;h=e03a9b261206bcad782d145f4deec0267502c9ea;hb=da0cfeda9689aa64cfce0aa209f51803dcb11c21;hp=30bc6592dc24c03b68c9484309c43ae234568a7c;hpb=594acbf436f5f78611348f7763a89c84f38ba46a;p=tinyos-2.x.git diff --git a/apps/tests/RadioStress/RadioStressC.nc b/apps/tests/RadioStress/RadioStressC.nc index 30bc6592..e03a9b26 100644 --- a/apps/tests/RadioStress/RadioStressC.nc +++ b/apps/tests/RadioStress/RadioStressC.nc @@ -75,7 +75,7 @@ implementation { task void sendTask(); void sendPacket() { - RadioCountMsg* rcm = (RadioCountMsg*)call Packet.getPayload(&packet, NULL); + RadioCountMsg* rcm = (RadioCountMsg*)call Packet.getPayload(&packet, sizeof(RadioCountMsg)); if (locked) {return;} rcm->counter = txCounter; if (call AMSend.send(AM_BROADCAST_ADDR, &packet, 2) == SUCCESS) {