From 1c4a6f701e814e5d7734ed0a1eca8fa12ad200c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20L=C3=B6scher?= Date: Thu, 26 Feb 2015 14:04:57 +0100 Subject: [PATCH] No deviation support for Contiki motes --- .../cooja/contikimote/interfaces/ContikiClock.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/cooja/java/org/contikios/cooja/contikimote/interfaces/ContikiClock.java b/tools/cooja/java/org/contikios/cooja/contikimote/interfaces/ContikiClock.java index 2fda03239..b033ef06d 100644 --- a/tools/cooja/java/org/contikios/cooja/contikimote/interfaces/ContikiClock.java +++ b/tools/cooja/java/org/contikios/cooja/contikimote/interfaces/ContikiClock.java @@ -76,7 +76,6 @@ public class ContikiClock extends Clock implements ContikiMoteInterface, PolledB private long moteTime; /* Microseconds */ private long timeDrift; /* Microseconds */ - private double deviation; /** * @param mote Mote @@ -90,7 +89,6 @@ public class ContikiClock extends Clock implements ContikiMoteInterface, PolledB this.moteMem = new VarMemory(mote.getMemory()); timeDrift = 0; moteTime = 0; - deviation = 1.0; } public static String[] getCoreInterfaceDependencies() { @@ -118,12 +116,11 @@ public class ContikiClock extends Clock implements ContikiMoteInterface, PolledB } public void setDeviation(double deviation) { - assert deviation>0.0; - this.deviation = deviation; + logger.fatal("Can't change deviation");; } public double getDeviation() { - return deviation; + return 1.0; } public void doActionsBeforeTick() {