]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Changes to comply with TEP4.
authorrazvanm <razvanm>
Wed, 25 Jun 2008 03:28:52 +0000 (03:28 +0000)
committerrazvanm <razvanm>
Wed, 25 Jun 2008 03:28:52 +0000 (03:28 +0000)
apps/tests/TestSimComm/TestCommAppC.nc
apps/tosthreads/apps/TestSineSensor/TestSineSensorAppC.nc
apps/tosthreads/capps/TestSineSensor/TestSineSensor.c

index 5cd94d2e840dcf5e2f2b1b98605d463a6e8447c7..c45a546b088dc8fa7c6d16ab937c21235455c48d 100644 (file)
@@ -49,7 +49,7 @@
 configuration TestCommAppC {}
 implementation {
   enum {
-    AM_TEST  = 5
+    AM_TEST  = 133
   };
   
   components MainC, TestCommC as App, RandomC, ActiveMessageC, TossimActiveMessageC;
index 2a5bdf2a97eb4ee805a197fa450fbef0c90f9bce..b37d3bbb46e2ac51f843f218dcdafd5b56703c7d 100644 (file)
@@ -41,7 +41,7 @@ implementation {
   
   components new BlockingSineSensorC();
   components BlockingSerialActiveMessageC;
-  components new BlockingSerialAMSenderC(100);
+  components new BlockingSerialAMSenderC(228);
 
   MainC.Boot <- TestSineSensorC;
   MainC.SoftwareInit -> BlockingSineSensorC;
index a74be6c979f24544d0036c13fb6a7dcae38fa223..2f676b22c1c37434cd9d865e9de7d4a79f18fd69 100644 (file)
@@ -46,7 +46,7 @@ void tosthread_main(void* arg) {
   while( amSerialStart() != SUCCESS );
   for(;;) {
     while( sinesensor_read(var) != SUCCESS );
-    while( amSerialSend(AM_BROADCAST_ADDR, &msg, sizeof(uint16_t), 100) != SUCCESS );
+    while( amSerialSend(AM_BROADCAST_ADDR, &msg, sizeof(uint16_t), 228) != SUCCESS );
     led0Toggle();
   }
 }
\ No newline at end of file