Skip to content

Commit

Permalink
fix(sa_keylen): Non-blocking sleep and cosmetic changes in output
Browse files Browse the repository at this point in the history
  • Loading branch information
emedav committed Aug 6, 2024
1 parent e44030c commit 240cdbd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gallia/commands/scan/uds/sa_keylen.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0

import asyncio
import binascii
import sys
import time
Expand Down Expand Up @@ -173,8 +174,8 @@ async def main(self, args: Namespace) -> None:
await self.ecu.set_session(session)

if args.sleep > 0:
logger.info(f"Sleeping for {args.sleep} seconds between sending keys...")
time.sleep(args.sleep)
logger.info(f"Sleeping for {args.sleep} seconds between sending keys")
await asyncio.sleep(args.sleep)

if not length_identified:
logger.result(
Expand Down

0 comments on commit 240cdbd

Please sign in to comment.