Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding new PDO (Transmit and Receive) only adds it to Mapping but not to Parameters #25

Closed
BriacLR opened this issue May 21, 2024 · 0 comments · Fixed by #26
Closed

Comments

@BriacLR
Copy link

BriacLR commented May 21, 2024

When I want to add a new PDO, the GUI only adds it to the XXX PDO Mapping and not to the XXX PDO Parameters. XXX is both Transmit and Receive.
Also, removing a PDO from the Mapping is not working, probably because its corresponding PDO Parameters does not exist.

Error message when trying to remove a PDO:

Traceback (most recent call last):
File "C:\git\python-objdictgen\venv\Lib\site-packages\objdictgen\ui\subindextable.py", line 918, in OnDeleteIndexMenu
self.Manager.ManageEntriesOfCurrent([], [index])
File "C:\git\python-objdictgen\venv\Lib\site-packages\objdictgen\nodemanager.py", line 503, in ManageEntriesOfCurrent
self.RemoveCurrentVariable(index)
File "C:\git\python-objdictgen\venv\Lib\site-packages\objdictgen\nodemanager.py", line 555, in RemoveCurrentVariable
node.RemoveLine(index, 0x19FF)
File "C:\git\python-objdictgen\venv\Lib\site-packages\objdictgen\node.py", line 927, in RemoveLine
self.Dictionary.pop(i)
KeyError: 6145

sveinse added a commit that referenced this issue May 21, 2024
sveinse added a commit that referenced this issue May 21, 2024
sveinse added a commit that referenced this issue May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant