mirror of https://github.com/ArduPilot/ardupilot
Fixed new Xbee Test bug
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1767 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
65037481a2
commit
844cc5da44
|
@ -791,10 +791,9 @@ test_xbee(uint8_t argc, const Menu::arg *argv)
|
||||||
|
|
||||||
while(1){
|
while(1){
|
||||||
int incomingByte;
|
int incomingByte;
|
||||||
if(Serial3.available()>0){
|
if (Serial3.available())
|
||||||
incomingByte = Serial3.read();
|
Serial3.write(Serial3.read());
|
||||||
Serial3.print(incomingByte,byte);
|
|
||||||
}
|
|
||||||
if(Serial.available() > 0){
|
if(Serial.available() > 0){
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue