mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-04 06:58:39 -04:00
Removed Serial references.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@804 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
744d72ea2b
commit
3ec939888e
@ -98,12 +98,6 @@ BinComm::update(void)
|
|||||||
// XXX we might want to further constrain this count
|
// XXX we might want to further constrain this count
|
||||||
count = _interface->available();
|
count = _interface->available();
|
||||||
|
|
||||||
//if (count > 0)
|
|
||||||
//{
|
|
||||||
//Serial.print("count: ");
|
|
||||||
//Serial.println(count,DEC);
|
|
||||||
//}
|
|
||||||
|
|
||||||
while (count--)
|
while (count--)
|
||||||
_decode(_interface->read());
|
_decode(_interface->read());
|
||||||
}
|
}
|
||||||
@ -121,8 +115,6 @@ BinComm::_decode(uint8_t inByte)
|
|||||||
|
|
||||||
// run the decode state machine
|
// run the decode state machine
|
||||||
//
|
//
|
||||||
//Serial.print("decode phase: "); Serial.println(_decodePhase,DEC);
|
|
||||||
//Serial.print("in byte: "); Serial.println(inByte,HEX);
|
|
||||||
switch (_decodePhase) {
|
switch (_decodePhase) {
|
||||||
|
|
||||||
// Preamble detection
|
// Preamble detection
|
||||||
@ -223,10 +215,6 @@ BinComm::_decode(uint8_t inByte)
|
|||||||
_messageID, _messageVersion, &_decodeBuf);
|
_messageID, _messageVersion, &_decodeBuf);
|
||||||
send_msg_acknowledge(_messageID,_sumA,_sumB);
|
send_msg_acknowledge(_messageID,_sumA,_sumB);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
Serial.println("unhandled message");
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
badMessagesReceived++;
|
badMessagesReceived++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user