Skip to content

Commit

Permalink
Correct documentation for requests (#219)
Browse files Browse the repository at this point in the history
Co-authored-by: speedy-h <speedy-h>
  • Loading branch information
speedy-h committed Mar 5, 2024
1 parent 1232118 commit 7411eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion udsoncan/services/SecurityAccess.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def make_request(cls, level: int, mode: int, data=bytes()) -> Request:
Generates a request for SecurityAccess
:param level: Service subfunction. The security level to unlock. Value ranging from 0 to 7F
For mode=``RequestSeed`` (0), level must be an even value. For mode=``SendKey`` (1), level must be an odd value.
For mode=``RequestSeed`` (0), level must be an odd value. For mode=``SendKey`` (1), level must be an even value.
If the even/odd constraint is not respected, the level value will be corrected to properly set the LSB.
:type level: int
Expand Down

0 comments on commit 7411eda

Please sign in to comment.