Skip to content

Fix returned error and process notification bug when handing SDO requests in NodeMbox#83

Merged
mcbridejc merged 3 commits into
mcbridejc:mainfrom
rohel01:fix/error-message
Jun 24, 2026
Merged

Fix returned error and process notification bug when handing SDO requests in NodeMbox#83
mcbridejc merged 3 commits into
mcbridejc:mainfrom
rohel01:fix/error-message

Conversation

@rohel01

@rohel01 rohel01 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Check sdo_comms.handle_req return value to avoid returning an Err from NodeMbox::store_message when handling is successful

@mcbridejc

Copy link
Copy Markdown
Owner

Actually I think it's even worse, no process notifications were being made for SDO requests! Actually all messages with the SDO request ID should be handled, and the sdo_comms return value indicates if further processing is needed in the main process context or not (e.g. for block uploads the entire block is collected before processing is triggered). I updated the logic and added a test to demo. Thanks for finding it.

@mcbridejc

Copy link
Copy Markdown
Owner

This will close #82

@mcbridejc mcbridejc linked an issue Jun 24, 2026 that may be closed by this pull request
@mcbridejc mcbridejc changed the title Successful SDO handling should not return an Error (#82) Fix returned error and process notification bug when handing SDO requests in NodeMbox Jun 24, 2026
@mcbridejc mcbridejc merged commit 9981fe4 into mcbridejc:main Jun 24, 2026
2 of 4 checks passed
@rohel01 rohel01 deleted the fix/error-message branch July 3, 2026 07:37
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 this pull request may close these issues.

Successful SDO handling always return an error

2 participants