Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RSDK-8757] allow disabling of individual capture configs #312

Conversation

gvaradarajan
Copy link
Member

In app, you can "turn off" individual data capture methods, but the micro-RDK infrastructure does not respect this setting. This fixes that.

@gvaradarajan gvaradarajan requested a review from a team as a code owner September 13, 2024 15:24
Comment on lines 55 to +56
let capacity = (capacity_kb * 1000.0) as usize;
if capacity < 1000 {
if (capacity < 1000) && !disabled {
Copy link
Member

@mattjperez mattjperez Sep 13, 2024

Choose a reason for hiding this comment

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

nit: not actually a change from this PR but wouldn't this (without the casting to usize) be the same as if capacity_kb < 1.0?

Copy link
Member

@mattjperez mattjperez left a comment

Choose a reason for hiding this comment

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

LGTM

@gvaradarajan gvaradarajan merged commit 8c30a67 into viamrobotics:main Sep 17, 2024
6 checks passed
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