]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/RadioCountToLeds/RadioCountToLedsC.nc
The big interface switchover for Packet, Send, Receive, and AMSend.
[tinyos-2.x.git] / apps / RadioCountToLeds / RadioCountToLedsC.nc
index d5f926f224cfdb7d15108f3b69d5ccbdb90755cb..fcc3c7c69ef5846b761cdc612cf891f511d672fe 100644 (file)
@@ -85,8 +85,8 @@ implementation {
       return;
     }
     else {
-      radio_count_msg_t* rcm = (radio_count_msg_t*)call Packet.getPayload(&packet, NULL);
-      if (call Packet.maxPayloadLength() < sizeof(radio_count_msg_t)) {
+      radio_count_msg_t* rcm = (radio_count_msg_t*)call Packet.getPayload(&packet, sizeof(radio_count_msg_t));
+      if (rcm == NULL) {
        return;
       }