]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/storage/SyncLog/SyncLogC.nc
The big interface switchover for Packet, Send, Receive, and AMSend.
[tinyos-2.x.git] / apps / tests / storage / SyncLog / SyncLogC.nc
index 8a8aad602d96149312abe2bec20e6c5693e61a9c..3bd9b1ffdce21e46197795138ebb94fc8527dcfc 100644 (file)
@@ -101,7 +101,7 @@ implementation {
     if (!busy)
       {
        SenseStoreRadioMsg* ssrpkt =
-         (SenseStoreRadioMsg*)(call AMSend.getPayload(&pkt));
+         (SenseStoreRadioMsg*)(call AMSend.getPayload(&pkt, sizeof(SenseStoreRadioMsg)));
        ssrpkt->nodeid = TOS_NODE_ID;
        ssrpkt->payloadData = data;
        if (call AMSend.send(AM_BROADCAST_ADDR, &pkt, sizeof(SenseStoreRadioMsg)) == SUCCESS)