From 5e251b837a59759663d0dc83195a1d4e567f236f Mon Sep 17 00:00:00 2001 From: fros4943 Date: Mon, 7 Dec 2009 11:04:15 +0000 Subject: [PATCH] hide interfered radio events when radio is not on --- tools/cooja/java/se/sics/cooja/plugins/TimeLine.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/cooja/java/se/sics/cooja/plugins/TimeLine.java b/tools/cooja/java/se/sics/cooja/plugins/TimeLine.java index 5d257db04..100b9a190 100644 --- a/tools/cooja/java/se/sics/cooja/plugins/TimeLine.java +++ b/tools/cooja/java/se/sics/cooja/plugins/TimeLine.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: TimeLine.java,v 1.17 2009/11/25 15:39:57 fros4943 Exp $ + * $Id: TimeLine.java,v 1.18 2009/12/07 11:04:15 fros4943 Exp $ */ package se.sics.cooja.plugins; @@ -743,6 +743,9 @@ public class TimeLine extends VisPlugin { if (moteRadio.isTransmitting()) { ev = new RadioRXTXEvent( simulation.getSimulationTime(), RXTXRadioEvent.TRANSMITTING); + } else if (!moteRadio.isReceiverOn()) { + ev = new RadioRXTXEvent( + simulation.getSimulationTime(), RXTXRadioEvent.IDLE); } else if (moteRadio.isInterfered()) { ev = new RadioRXTXEvent( simulation.getSimulationTime(), RXTXRadioEvent.INTERFERED);