diff --git a/src/gallia/commands/scan/uds/sessions.py b/src/gallia/commands/scan/uds/sessions.py index 9e3b230cd..3803c7e47 100644 --- a/src/gallia/commands/scan/uds/sessions.py +++ b/src/gallia/commands/scan/uds/sessions.py @@ -167,7 +167,7 @@ async def main(self, args: Namespace) -> None: ) else: logger.info("Waiting for the ECU to recover…") - await self.ecu.wait_for_ecu(timeout=5) + await self.ecu.wait_for_ecu(timeout=args.timeout) except (asyncio.TimeoutError, ConnectionError): logger.warning( "Lost connection to the ECU after performing a reset. "