From 844cc5da44597e800d7047984ac4f99005b6e0fd Mon Sep 17 00:00:00 2001 From: jasonshort Date: Thu, 10 Mar 2011 21:27:22 +0000 Subject: [PATCH] Fixed new Xbee Test bug git-svn-id: https://arducopter.googlecode.com/svn/trunk@1767 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- ArduCopterMega/test.pde | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ArduCopterMega/test.pde b/ArduCopterMega/test.pde index 08126ab49a..69c7f3c9fa 100644 --- a/ArduCopterMega/test.pde +++ b/ArduCopterMega/test.pde @@ -791,10 +791,9 @@ test_xbee(uint8_t argc, const Menu::arg *argv) while(1){ int incomingByte; - if(Serial3.available()>0){ - incomingByte = Serial3.read(); - Serial3.print(incomingByte,byte); - } + if (Serial3.available()) + Serial3.write(Serial3.read()); + if(Serial.available() > 0){ return (0); }