mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-06 17:03:17 +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_PrintHex4(err.val);
|
||||
break;
|
||||
case BAD_DATA_PARITY:
|
||||
RS232_Print("reading data");
|
||||
goto VERBOSE;
|
||||
case BAD_DATA_PARITY: RS232_Print("reading data"); goto VERBOSE;
|
||||
case BAD_PARITY:
|
||||
__builtin_unreachable();
|
||||
VERBOSE:
|
||||
if (print.verbose) {
|
||||
RS232_Print("; read 0x");
|
||||
RS232_PrintHex(err.val);
|
||||
}
|
||||
case BAD_PARITY: __builtin_unreachable();
|
||||
}
|
||||
RS232_Print("\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user