]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/mts300/PhotoTemp/OscilloscopeC.nc
The big interface switchover for Packet, Send, Receive, and AMSend.
[tinyos-2.x.git] / apps / tests / mts300 / PhotoTemp / OscilloscopeC.nc
index 277fb0314405af4199f947f54a9fbea1169f478a..6ba42ce04dfdfbe3b230db6321f5f1a86ef47411 100644 (file)
@@ -102,7 +102,7 @@ implementation
       {
        if (!sendbusy && sizeof local <= call AMSend.maxPayloadLength())
          {
-           memcpy(call AMSend.getPayload(&sendbuf), &local, sizeof local);
+           memcpy(call AMSend.getPayload(&sendbuf, sizeof(local)), &local, sizeof local);
            if (call AMSend.send(AM_BROADCAST_ADDR, &sendbuf, sizeof local) == SUCCESS)
              sendbusy = TRUE;
          }