From 0845bf18d72510dfc93c132082828649e0ecb6cd Mon Sep 17 00:00:00 2001 From: fros4943 Date: Wed, 3 Feb 2010 15:10:55 +0000 Subject: [PATCH] printing on serial port instead of System.out --- tools/cooja/examples/appmote_rimeabc/RimeABC.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cooja/examples/appmote_rimeabc/RimeABC.java b/tools/cooja/examples/appmote_rimeabc/RimeABC.java index 64db2898b..38de798a4 100644 --- a/tools/cooja/examples/appmote_rimeabc/RimeABC.java +++ b/tools/cooja/examples/appmote_rimeabc/RimeABC.java @@ -115,14 +115,14 @@ public class RimeABC extends AbstractApplicationMote { byte[] noHeader = new byte[packetData.length-2-1]; System.arraycopy(packetData, 2, noHeader, 0, noHeader.length); String test = new String(noHeader); - System.out.println(this + ": abc message received '" + test + "'"); + log("abc message received '" + test + "'"); /* Turn on green LED */ leds.setLED(ApplicationLED.LEDS_GREEN); } public void sentPacket(RadioPacket p) { - System.out.println(this + ": abc message sent"); + log("abc message sent"); requestImmediateWakeup(); /* Triggers execute method */ }