Skip to content

Conversation

@Nir-Az
Copy link
Collaborator

@Nir-Az Nir-Az commented Feb 21, 2024

Tracked on [RSDEV-1707]
Support laser strobe on HMC
Fix a small Coverity issue
remove a redundant include

@Nir-Az Nir-Az requested review from OhadMeir and SamerKhshiboun and removed request for OhadMeir and SamerKhshiboun February 21, 2024 18:43
command cmd( _hmc_set_opcode );
// reverse logic legacy <> new opcode as we query `LASERONCONST` vs 'APM_STROBE_ON' and return 'EMITTER_ALWAYES_ON'
bool always_on = _is_legacy ? value : ( value != 1.0f );
cmd.param1 = static_cast<int>(always_on);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not cast directly to uint32_t?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@Nir-Az Nir-Az merged commit 51e4c64 into realsenseai:development Feb 26, 2024
@Nir-Az Nir-Az deleted the strobe branch September 30, 2024 11:42
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