From 6877b1850d57865ec1190cda1978771e10fdaeb8 Mon Sep 17 00:00:00 2001 From: Balazs Eszes Date: Mon, 3 Oct 2022 00:05:19 +0200 Subject: [PATCH] Fixes diagnostic frame lengths Changelog and version updated --- CHANGELOG.md | 6 ++++++ ldfparser/parser.py | 2 +- setup.cfg | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd1afa3..7021fbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/ldfparser/parser.py b/ldfparser/parser.py index add6c4c..131b785 100644 --- a/ldfparser/parser.py +++ b/ldfparser/parser.py @@ -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) diff --git a/setup.cfg b/setup.cfg index d09d01a..508a7b6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,2 @@ [metadata] -version = 0.15.0 +version = 0.16.0