]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Acks should still work if a node sets its AM address.
authorscipio <scipio>
Thu, 5 Feb 2009 22:45:41 +0000 (22:45 +0000)
committerscipio <scipio>
Thu, 5 Feb 2009 22:45:41 +0000 (22:45 +0000)
tos/lib/tossim/CpmModelC.nc

index 167b6a8574a44df354025c3875cfe355bb7eefd2..f28895efb64df5e406e8aabaef6d9fb3eea03aaf 100644 (file)
@@ -426,7 +426,7 @@ implementation {
 
     while (neighborEntry != NULL) {
       int other = neighborEntry->mote;
-      sim_gain_put(other, msg, endTime, ack && (other == dest), power + sim_gain_value(sim_node(), other), reversePower + sim_gain_value(other, sim_node()));
+      sim_gain_put(other, msg, endTime, ack, power + sim_gain_value(sim_node(), other), reversePower + sim_gain_value(other, sim_node()));
       neighborEntry = sim_gain_next(neighborEntry);
     }
   }