diff --git a/src/gallia/transports/flexray_vector.py b/src/gallia/transports/flexray_vector.py index 7161aa72..1d0bcfbf 100644 --- a/src/gallia/transports/flexray_vector.py +++ b/src/gallia/transports/flexray_vector.py @@ -448,7 +448,10 @@ async def _handle_fragmented(self, expected_len: int) -> bytes: if self._require_fc_frame(self.config.fc_block_size, read_bytes): await self._send_flow_control_frame() - frame = await self.read_tp_frame() + # TODO: Make this configurable. Maybe align with separation_time. + async with asyncio.timeout(10): + frame = await self.read_tp_frame() + if not isinstance(frame, FlexRayTPConsecutiveFrame): raise RuntimeError(f"expected consecutive frame, got: {frame}") if frame.counter != (counter & 0x0F):