fixup readframe error logs

This commit is contained in:
Allen Hill
2026-05-06 13:59:04 -07:00
parent 18c5a28410
commit bdb1a8af0d
+2 -4
View File
@@ -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");