For Commands with multiple Replies DHB::doSendRead does not read correct #405
Labels
No Label
API Change
Breaking API Change
bug
build
cosmetics
Documentation
duplicate
feature
help wanted
hotfix
invalid
question
Refactor
Tests
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: fsfw/fsfw#405
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If a command has multiple replies with different reply ids, the code beneath will not get the right replyLen.
https://egit.irs.uni-stuttgart.de/fsfw/fsfw/src/branch/master/devicehandlers/DeviceHandlerBase.cpp#L593
Possible soultions:
This will break if a command has multiple replies and one of them has the same ID as the command!
The doSendRead function would then be:
User can then implement special cases for multiple answers.
My favorit is 3!
I like 3 as well.