Skip to content

Commit

Permalink
flush receive queue
Browse files Browse the repository at this point in the history
  • Loading branch information
peckto committed Jun 27, 2022
1 parent cf8f974 commit 9cb62fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gallia/udscan/scanner/find_can_ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ async def main(self, args: Namespace) -> None:

self.logger.log_summary(f"Found {len(idle_msgs)} CAN Messages on idle Bus")
transport.set_filter(idle_msgs, inv_filter=True)
# flush receive queue
await transport.get_idle_traffic(2)

req = UDSRequest.parse_dynamic(args.pdu)
pdu = self.build_isotp_frame(req, padding=args.padding)
Expand Down

0 comments on commit 9cb62fe

Please sign in to comment.