Skip to content

Commit 0e7daea

Browse files
committed
Fix Error when trying to save after deleting an RPDO which is in the middle of the list of other RPDOs #80
Bump to 3.5.6
1 parent 6c7edee commit 0e7daea

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "objdictgen"
7-
version = "3.5.5"
7+
version = "3.5.6"
88
description = "CanFestival Object Dictionary tool"
99
authors = [
1010
{name = "Svein Seldal", email = "svein.seldal@laerdal.com"},

‎src/objdictgen/node.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,7 @@ def RemoveLine(self, index: int, maxval: int, incr: int = 1):
935935
while i < maxval and self.IsEntry(i + incr):
936936
# FIXME: Not sure what this does
937937
self.Dictionary[i] = self.Dictionary[i + incr]
938+
self.ParamsDictionary[i] = self.ParamsDictionary.get(i + incr, {})
938939
i += incr
939940
self.Dictionary.pop(i)
940941
self.ParamsDictionary.pop(i, None)

0 commit comments

Comments
 (0)