Feature: Allowed Submodes Mask for Mode List Entry #130
No reviewers
Labels
No Label
api change
breaking api change
bug
documentation
duplicate
feature
help wanted
invalid
question
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: eive/fsfw#130
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature_allow_submodes_mode_list_entry"
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?
See comments
@ -24,2 +24,4 @@
using namespace mode;
std::map<object_id_t, ChildInfo>::iterator childIter;
auto checkSubmode = [&]() {
If you have to use a lambda, which I find a nightmare to read, maybe capture &childIter explicitly.
@ -26,0 +36,4 @@
return returnvalue::FAILED;
}
}
if (submodesAllowedMask) {
This can be the else case of the above. Or maybe switch cases (not XX might be harder to read):
@ -109,0 +101,4 @@
/**
* Specialization of @enableSubmodeAllowed which allows all submodes.
*/
void allowAllSubmodes() { enableSubmodeAllowed(0xff); }
0xFF should be defined somewhere visible as a restricted mask.
LGTM