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

Fix adrv9002 plugin #470

Merged
merged 4 commits into from
Dec 20, 2023
Merged

Fix adrv9002 plugin #470

merged 4 commits into from
Dec 20, 2023

Conversation

nunojsa
Copy link
Contributor

@nunojsa nunojsa commented Dec 20, 2023

Small series with some nit improvements and a fix for the adrv9002 plugin.

Often, one wants to enable/disable certain features in a plugin
depending on the present or not of some attribute. hence, let's add an
helper for it. For now, this only supports checking device and channel
attributes as that should cover most of the cases.

Signed-off-by: Nuno Sa <[email protected]>
@nunojsa nunojsa requested review from dNechita and a team December 20, 2023 09:29
Give a more descriptive name on the initial calibrations frame. This
will be used in follow change to hide the frame if the feature is not
supported.

Signed-off-by: Nuno Sa <[email protected]>
If the adrv9002 does not have support (older version) for
initial_calibrations handling, the plugin was crashing. Fixing it by
making use of the new iio_attr_not_found() helper. If not found, let's
hide the calibrations frame and move on with life.

While at it, removed useless comment.

Signed-off-by: Nuno Sa <[email protected]>
Add missing new line and improving it by stating that the failure might
also be from gtk_builder_add_from_file() failing to load the file and
not necessarily by the file not being found.

Signed-off-by: Nuno Sa <[email protected]>
@nunojsa nunojsa merged commit bcd122b into master Dec 20, 2023
10 checks passed
@nunojsa nunojsa deleted the fix/adrv9002-plugin branch December 20, 2023 15:41
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