]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/rf230/RF230Test/RF230TestM.nc
fixed AMSend interface usage
[tinyos-2.x.git] / apps / tests / rf230 / RF230Test / RF230TestM.nc
index 3fa947fb41e1acb274966bb757849eb30b64e70e..d23846d96cfb6a3d4d11911cc2eef36001c36923 100644 (file)
@@ -84,7 +84,9 @@ implementation
                        call RadioState.turnOn();
                else if( seqNo == 7 )
                {
-                       *(uint16_t*)(call AMSend.getPayload[111](&testMsg)) = seqNo;
+                       *(uint16_t*)(call AMSend.getPayload[111](
+                    &testMsg,
+                               call AMSend.maxPayloadLength[111]())) = seqNo;
                        call AMSend.send[111](0xFFFF, &testMsg, 2);
                }
        }
@@ -97,7 +99,9 @@ implementation
                        call RadioState.turnOn();
                else if( 2 <= seqMod && seqMod <= 14 )
                {
-                       *(uint16_t*)(call AMSend.getPayload[111](&testMsg)) = seqNo;
+                       *(uint16_t*)(call AMSend.getPayload[111](
+                    &testMsg,
+                    call AMSend.maxPayloadLength[111]())) = seqNo;
                        call AMSend.send[111](0xFFFF, &testMsg, 2);
                }
                else if( seqMod == 15 )