mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-07 01:13:18 +00:00
fixup readframe error logs
This commit is contained in:
+2
-4
@@ -677,10 +677,10 @@ uint8_t AVCLAN_readframe() {
|
|||||||
if (0) {
|
if (0) {
|
||||||
handle_err:;
|
handle_err:;
|
||||||
startEvent();
|
startEvent();
|
||||||
RS232_Print("ERR: ");
|
RS232_Print("ERR(read): ");
|
||||||
switch (err.errno) {
|
switch (err.errno) {
|
||||||
case STARTBIT_TIMEOUT: break;
|
case STARTBIT_TIMEOUT: break;
|
||||||
case STARTBIT_LENGTH: RS232_Print("reading start bit length\n"); break;
|
case STARTBIT_LENGTH: RS232_Print("bad start bit length"); break;
|
||||||
case BAD_CONTROLLER_PARITY:
|
case BAD_CONTROLLER_PARITY:
|
||||||
RS232_Print("reading controller addr.");
|
RS232_Print("reading controller addr.");
|
||||||
goto VERBOSE;
|
goto VERBOSE;
|
||||||
@@ -692,7 +692,6 @@ uint8_t AVCLAN_readframe() {
|
|||||||
case BAD_LENGTH_RANGE:
|
case BAD_LENGTH_RANGE:
|
||||||
RS232_Print("bad length 0x");
|
RS232_Print("bad length 0x");
|
||||||
RS232_PrintHex4(err.val);
|
RS232_PrintHex4(err.val);
|
||||||
RS232_Print("\n");
|
|
||||||
break;
|
break;
|
||||||
case BAD_DATA_PARITY: RS232_Print("reading data"); goto VERBOSE;
|
case BAD_DATA_PARITY: RS232_Print("reading data"); goto VERBOSE;
|
||||||
default:
|
default:
|
||||||
@@ -704,7 +703,6 @@ uint8_t AVCLAN_readframe() {
|
|||||||
RS232_Print(" and got bad parity ");
|
RS232_Print(" and got bad parity ");
|
||||||
RS232_PrintHex4(err.parity);
|
RS232_PrintHex4(err.parity);
|
||||||
}
|
}
|
||||||
RS232_Print("\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RS232_Print("\n");
|
RS232_Print("\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user