]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/TestLocalTime/TestLocalTimeC.nc
The big interface switchover for Packet, Send, Receive, and AMSend.
[tinyos-2.x.git] / apps / tests / TestLocalTime / TestLocalTimeC.nc
index a0093345d2fd923e4581e488d8e67d74d04427e3..f2053570c04f6ec6bbc5c9c6849596fa88635976 100644 (file)
@@ -73,7 +73,7 @@ implementation {
   event void MilliTimer.fired() {
     if (!locked)
       {
-       test_localtime_msg_t* rcm = (test_localtime_msg_t*)call AMSend.getPayload(&packet);
+       test_localtime_msg_t* rcm = (test_localtime_msg_t*)call AMSend.getPayload(&packet, sizeof(test_localtime_msg_t));
        if (call AMSend.maxPayloadLength() < sizeof(test_localtime_msg_t))
          return;