[RSDK-12899] Fix set device properties#64
Open
SebastianMunozP wants to merge 8 commits intoviam-modules:mainfrom
Open
[RSDK-12899] Fix set device properties#64SebastianMunozP wants to merge 8 commits intoviam-modules:mainfrom
SebastianMunozP wants to merge 8 commits intoviam-modules:mainfrom
Conversation
…P/orbbec into fix-get-device-properties
Collaborator
|
PR title is inaccurate. This fix is for set device properties |
hexbabe
reviewed
Feb 3, 2026
src/module/device_control.hpp
Outdated
There was a problem hiding this comment.
Do we want to skip with continue or error out here?
Contributor
Author
There was a problem hiding this comment.
Good catch, changing this to error out, also, since this is intended to modify multiple settings of the camera at the same time, I'm adding a 2 phase approach, in which first we check if all changes can be applied, and only when we are sure, we apply them,
seanavery
approved these changes
Feb 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes a crash on the
get_device_propertiesdo_command, caused by a missing continue statement onget_device_propertieshandling.This issue happens when the user calls
get_device_propertieswith a non-struct payload, such as this:With this fix, these kind of calls are correctly handled producing the following error
We are also checking that all settings being modified can actually be modified before doing it
This works OK:
This does not (missing
currentfield), no fields are modified