From b33b490271a59663a9363e47ef64f3ba0d39390f Mon Sep 17 00:00:00 2001 From: scipio Date: Thu, 5 Feb 2009 22:45:41 +0000 Subject: [PATCH] Acks should still work if a node sets its AM address. --- tos/lib/tossim/CpmModelC.nc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tos/lib/tossim/CpmModelC.nc b/tos/lib/tossim/CpmModelC.nc index 167b6a85..f28895ef 100644 --- a/tos/lib/tossim/CpmModelC.nc +++ b/tos/lib/tossim/CpmModelC.nc @@ -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); } } -- 2.39.2