Skip to content

checking supports api before calling get or set to emitter option - #8623

Merged
ev-mp merged 1 commit into
realsenseai:developmentfrom
remibettan:SKU_B5B-tare-get-fix
Mar 24, 2021
Merged

checking supports api before calling get or set to emitter option#8623
ev-mp merged 1 commit into
realsenseai:developmentfrom
remibettan:SKU_B5B-tare-get-fix

Conversation

@remibettan

Copy link
Copy Markdown
Contributor

Tracked by: DSO-16782

@ev-mp ev-mp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For merge

Comment thread common/on-chip-calib.cpp
get_manager().action = on_chip_calib_manager::RS2_CALIB_ACTION_TARE_CALIB;
update_state = update_state_prev;
get_manager()._sub->s->set_option(RS2_OPTION_EMITTER_ENABLED, get_manager().laser_status_prev);
if (get_manager().laser_status_prev = get_manager()._sub->s->supports(RS2_OPTION_EMITTER_ENABLED))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not
if (get_manager().laser_status_prev = get_manager()._sub->s->supports(RS2_OPTION_EMITTER_ENABLED))
here and below?

Also - verify laser_status_prev initialization

@ev-mp
ev-mp merged commit 8f29ab5 into realsenseai:development Mar 24, 2021
@remibettan
remibettan deleted the SKU_B5B-tare-get-fix branch July 29, 2025 14:05
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.

2 participants