]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
- re-introduced, accidentally removed, AM group field
authorphihup <phihup>
Thu, 21 Jun 2007 11:44:14 +0000 (11:44 +0000)
committerphihup <phihup>
Thu, 21 Jun 2007 11:44:14 +0000 (11:44 +0000)
tos/chips/tda5250/Tda5250ActiveMessageP.nc
tos/chips/tda5250/tda5250_message.h

index 149bc0803c1af1205192be657553f3c2093cafa2..05c8943fd3fe954d64fb91c30c8cb1ec66fd4006 100644 (file)
@@ -154,14 +154,13 @@ implementation {
   }
 
   command void AMPacket.setGroup(message_t* msg, am_group_t group) {
-    //tda5250_header_t* header = getHeader(msg);
-    //header->group = group;
+    tda5250_header_t* header = getHeader(msg);
+    header->group = group;
   }
 
   command am_group_t AMPacket.group(message_t* msg) {
-    //tda5250_header_t* header = getHeader(msg);
-    //return header->group;
-    return TOS_AM_GROUP;
+    tda5250_header_t* header = getHeader(msg);
+    return header->group;
   }
 
   command am_group_t AMPacket.localGroup() {
index 4d8b563bc7df036ccf8ea3bbb9c98a0fded8b1ea..40a4b8ce74680b1d019bed4e49216cde26396f83 100644 (file)
@@ -9,6 +9,7 @@ typedef nx_struct tda5250_header_t {
   nx_am_addr_t src;
   nx_am_addr_t dest;
   nx_am_id_t   type;
+  nx_am_group_t group;
   nx_uint8_t   token;
 } tda5250_header_t;