Skip to content

Commit

Permalink
use flush_receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
peckto committed Jun 29, 2022
1 parent ffaec60 commit ecb9b20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gallia/udscan/scanner/find_xcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,7 @@ async def test_can(self, args: Namespace) -> None:
addr_idle = await transport.get_idle_traffic(sniff_time)
self.logger.log_summary(f"Found {len(addr_idle)} CAN Addresses on idle Bus")
transport.set_filter(addr_idle, inv_filter=True)
# flush receive queue
await transport.get_idle_traffic(2)
await transport.flush_receiver(2)

for can_id in range(0x800):
self.logger.log_info(f"Testing CAN ID: {can_id_repr(can_id)}")
Expand Down

0 comments on commit ecb9b20

Please sign in to comment.