From 6c879fc81a7bb4376fc8b18966c247a271117860 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Fri, 12 Jan 2007 10:43:19 +0000 Subject: [PATCH] bug fix: mote id reported changed every tick --- .../se/sics/cooja/contikimote/interfaces/ContikiMoteID.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/contikimote/interfaces/ContikiMoteID.java b/tools/cooja/java/se/sics/cooja/contikimote/interfaces/ContikiMoteID.java index 853a17d1f..88dbab56a 100644 --- a/tools/cooja/java/se/sics/cooja/contikimote/interfaces/ContikiMoteID.java +++ b/tools/cooja/java/se/sics/cooja/contikimote/interfaces/ContikiMoteID.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ContikiMoteID.java,v 1.2 2007/01/09 10:05:19 fros4943 Exp $ + * $Id: ContikiMoteID.java,v 1.3 2007/01/12 10:43:19 fros4943 Exp $ */ package se.sics.cooja.contikimote.interfaces; @@ -100,9 +100,9 @@ public class ContikiMoteID extends MoteID implements ContikiMoteInterface { setMoteID = false; moteMem.setIntValueOf("simMoteID", moteID); moteMem.setByteValueOf("simMoteIDChanged", (byte) 1); + setChanged(); + notifyObservers(); } - setChanged(); - notifyObservers(); } public void doActionsAfterTick() {