Skip to content

Commit

Permalink
Fixes diagnostic frame lengths
Browse files Browse the repository at this point in the history
Changelog and version updated
  • Loading branch information
c4deszes committed Oct 2, 2022
1 parent 9709c68 commit 6877b18
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.16.0] - 2022-10-02

### Added

- Sporadic frames are parsed into Python objects
Expand All @@ -16,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Path to the grammar and LDF template are now resolved absolute to allow using them in `pyinstaller`
- `LDF::get_frame` can also return sporadic frames

### Fixed

- The loaded diagnostic frames' lengths are now correctly set

## [0.15.0] - 2022-08-20

### Added
Expand Down
2 changes: 1 addition & 1 deletion ldfparser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def _populate_diagnostic_frames(json: dict, ldf: LDF):
raise ValueError(f"{frame['name']} references non existing signal {signal['signal']}")
signals[signal['offset']] = s

frame_obj = LinDiagnosticFrame(frame['frame_id'], frame['name'], 9, signals)
frame_obj = LinDiagnosticFrame(frame['frame_id'], frame['name'], 8, signals)
ldf._diagnostic_frames[frame['name']] = frame_obj
if frame['frame_id'] == LIN_MASTER_REQUEST_FRAME_ID:
ldf._master_request_frame = LinDiagnosticRequest(frame_obj)
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[metadata]
version = 0.15.0
version = 0.16.0

0 comments on commit 6877b18

Please sign in to comment.