Trimmed unnecessary code from MS/TP receive FSM. Updated rs485 for AVR and ARM.

This commit is contained in:
skarg
2007-09-07 05:42:53 +00:00
parent 8fb328ce23
commit 62a7475817
5 changed files with 29 additions and 63 deletions
+3 -4
View File
@@ -269,12 +269,11 @@ int main(void)
RS485_Initialize();
/* receive task */
for (;;) {
if (RS485_DataAvailable(&DataRegister)) {
fprintf(stderr,"%02X ",DataRegister);
} else if (RS485_ReceiveError()) {
if (RS485_ReceiveError()) {
fprintf(stderr,"ERROR ");
} else if (RS485_DataAvailable(&DataRegister)) {
fprintf(stderr,"%02X ",DataRegister);
}
}
}
#endif