]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/tossim/CpmModelC.nc
Acks should still work if a node sets its AM address.
[tinyos-2.x.git] / 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);
     }
   }