]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/cc2420/LplBroadcastCountToLeds/RadioCountToLedsC.nc
The big interface switchover for Packet, Send, Receive, and AMSend.
[tinyos-2.x.git] / apps / tests / cc2420 / LplBroadcastCountToLeds / RadioCountToLedsC.nc
index 0032148769c0feba76470dbe91193c71a77097db..34576fd14a3090d9f2d66f8c0c535a26633ba7e8 100644 (file)
@@ -88,7 +88,7 @@ implementation {
       return;
     }
     else {
-      radio_count_msg_t* rcm = (radio_count_msg_t*)call Packet.getPayload(&packet, NULL);
+      radio_count_msg_t* rcm = (radio_count_msg_t*)call Packet.getPayload(&packet, sizeof(radio_count_msg_t));
       if (call Packet.maxPayloadLength() < sizeof(radio_count_msg_t)) {
         return;
       }