]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/TestSimComm/TestCommC.nc
Incorporated patches and bug fixes from community (tweaked slightly).
[tinyos-2.x.git] / apps / tests / TestSimComm / TestCommC.nc
index 0ad5de3f0e6c3357dcc5841e07470eb5917155f6..5aa09d2025974ae6d8ba9ae00e32347ff11e6078 100644 (file)
@@ -47,6 +47,7 @@ module TestCommC {
     interface SplitControl;
     interface AMPacket;
     interface PacketAcknowledgements;
+    interface TossimPacket;
   }
 }
 implementation {
@@ -93,7 +94,7 @@ implementation {
 
 
   event message_t* Receive.receive(message_t* msg, void* p, uint8_t l) {
-    dbg("TestComm", "Received message from %hu @ %s\n", call AMPacket.source(msg), sim_time_string());
+    dbg("TestComm", "Received message from %hu @ %s with strength %hhi\n", call AMPacket.source(msg), sim_time_string(), call TossimPacket.strength(msg));
     return msg;
   }
 }