]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
fixed AMSend interface usage
authorsallai <sallai>
Sat, 17 Nov 2007 02:24:43 +0000 (02:24 +0000)
committersallai <sallai>
Sat, 17 Nov 2007 02:24:43 +0000 (02:24 +0000)
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 )