Skip to content

Commit

Permalink
Improve results handling
Browse files Browse the repository at this point in the history
  • Loading branch information
fkglr committed Nov 13, 2024
1 parent d304e78 commit 1e81ee8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/gallia/commands/primitive/uds/rdbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class ReadByIdentifierPrimitive(UDSScanner):
def __init__(self, config: ReadByIdentifierPrimitiveConfig):
super().__init__(config)
self.config: ReadByIdentifierPrimitiveConfig = config
self.result: bytes | None = None

async def main(self) -> None:
try:
Expand Down
3 changes: 2 additions & 1 deletion src/gallia/commands/scan/uds/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ def __init__(self, config: ServicesScannerConfig):
super().__init__(config)
self.config: ServicesScannerConfig = config

async def main(self) -> None:
self.result: list[tuple[int, int]] = []

async def main(self) -> None:
self.ecu.max_retry = 0
found: dict[int, dict[int, Any]] = {}

Expand Down
3 changes: 2 additions & 1 deletion src/gallia/commands/scan/uds/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def __init__(self, config: SessionsScannerConfig):
super().__init__(config)
self.config: SessionsScannerConfig = config

self.result: list[int] = []

async def set_session_with_hooks_handling(
self, session: int, use_hooks: bool
) -> NegativeResponse | DiagnosticSessionControlResponse:
Expand Down Expand Up @@ -100,7 +102,6 @@ async def recover_stack(self, stack: list[int], use_hooks: bool) -> bool:
return True

async def main(self) -> None:
self.result: list[int] = []
found: dict[int, list[list[int]]] = {0: [[0x01]]}
positive_results: list[dict[str, Any]] = []
negative_results: list[dict[str, Any]] = []
Expand Down

0 comments on commit 1e81ee8

Please sign in to comment.