printing on serial port instead of System.out

This commit is contained in:
fros4943 2010-02-03 15:10:55 +00:00
parent 1246174525
commit 0845bf18d7

View file

@ -115,14 +115,14 @@ public class RimeABC extends AbstractApplicationMote {
byte[] noHeader = new byte[packetData.length-2-1]; byte[] noHeader = new byte[packetData.length-2-1];
System.arraycopy(packetData, 2, noHeader, 0, noHeader.length); System.arraycopy(packetData, 2, noHeader, 0, noHeader.length);
String test = new String(noHeader); String test = new String(noHeader);
System.out.println(this + ": abc message received '" + test + "'"); log("abc message received '" + test + "'");
/* Turn on green LED */ /* Turn on green LED */
leds.setLED(ApplicationLED.LEDS_GREEN); leds.setLED(ApplicationLED.LEDS_GREEN);
} }
public void sentPacket(RadioPacket p) { public void sentPacket(RadioPacket p) {
System.out.println(this + ": abc message sent"); log("abc message sent");
requestImmediateWakeup(); /* Triggers execute method */ requestImmediateWakeup(); /* Triggers execute method */
} }