Skip to content

nmt: Fix NmtSlave on a node without a heartbeat producer time#672

Merged
bizfsc merged 1 commit into
canopen-python:masterfrom
acolomb:nmt-slave-no-1070
Jun 24, 2026
Merged

nmt: Fix NmtSlave on a node without a heartbeat producer time#672
bizfsc merged 1 commit into
canopen-python:masterfrom
acolomb:nmt-slave-no-1070

Conversation

@acolomb

@acolomb acolomb commented May 29, 2026

Copy link
Copy Markdown
Member

The NMT state transition from INITIALISING to PRE-OPERATIONAL causes the heartbeat to start automatically if the parameter is non-zero in object 0x1017:00. This check however raises an exception if the object does not even exist.

Cover this state in tests and explicitly ignore a KeyError when asking for the object.

The NMT state transition from INITIALISING to PRE-OPERATIONAL causes
the heartbeat to start automatically if the parameter is non-zero in
object 0x1017:00.  This check however raises an exception if the
object does not even exist.

Cover this state in tests and explicitly ignore a KeyError when asking
for the object.
@codecov

codecov Bot commented May 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@acolomb acolomb added the bug label Jun 14, 2026

@bizfsc bizfsc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minimal implementation to fix bug. approved

@bizfsc bizfsc merged commit ea0efa4 into canopen-python:master Jun 24, 2026
4 of 5 checks passed
@acolomb acolomb deleted the nmt-slave-no-1070 branch June 24, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants