Corrected object supported list.

This commit is contained in:
skarg
2007-10-16 22:46:28 +00:00
parent 22c227f326
commit 9ff27e38aa
5 changed files with 22 additions and 6 deletions
+8 -4
View File
@@ -272,19 +272,23 @@ bool RS485_ReceiveError(void)
uint8_t dummy_data;
/* check for framing error */
#if 0
if (BIT_CHECK(UCSR0A,FE0)) {
/* FIXME: how do I clear the error flags? */
BITMASK_CLEAR(UCSR0A,(_BV(FE0) | _BV(DOR0) | _BV(UPE0)));
ReceiveError = true;
}
#endif
/* check for overrun error */
if (BIT_CHECK(UCSR0A,DOR0)) {
ReceiveError = true;
}
if (ReceiveError) {
RS485_LED1_On();
/* flush the receive buffer */
do {
dummy_data = UDR0;
} while (BIT_CHECK(UCSR0A,RXC0));
ReceiveError = true;
}
if (ReceiveError) {
RS485_LED1_On();
}
return ReceiveError;