mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-07 01:13:18 +00:00
fixup error switch flow
This commit is contained in:
+3
-4
@@ -154,15 +154,14 @@ auto Bus::read(uint16_t address, Frame *in, Frame::Print print) -> Error::Read {
|
|||||||
RS232_Print("bad length 0x");
|
RS232_Print("bad length 0x");
|
||||||
RS232_PrintHex4(err.val);
|
RS232_PrintHex4(err.val);
|
||||||
break;
|
break;
|
||||||
case BAD_DATA_PARITY:
|
case BAD_DATA_PARITY: RS232_Print("reading data"); goto VERBOSE;
|
||||||
RS232_Print("reading data");
|
case BAD_PARITY:
|
||||||
goto VERBOSE;
|
__builtin_unreachable();
|
||||||
VERBOSE:
|
VERBOSE:
|
||||||
if (print.verbose) {
|
if (print.verbose) {
|
||||||
RS232_Print("; read 0x");
|
RS232_Print("; read 0x");
|
||||||
RS232_PrintHex(err.val);
|
RS232_PrintHex(err.val);
|
||||||
}
|
}
|
||||||
case BAD_PARITY: __builtin_unreachable();
|
|
||||||
}
|
}
|
||||||
RS232_Print("\n");
|
RS232_Print("\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user