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

Commits on Dec 20, 2023

  1. iio_utils: add helper API to see if attribute is not present

    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 committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    16a0341 View commit details
    Browse the repository at this point in the history
  2. glade: adrv9002: rename initial calibrations frame

    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]>
    nunojsa committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    044b060 View commit details
    Browse the repository at this point in the history
  3. plugins: adrv9002: fix plugin crash

    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]>
    nunojsa committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    159b60b View commit details
    Browse the repository at this point in the history
  4. osc: improve log output in osc_load_glade_file()

    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 committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    12932a8 View commit details
    Browse the repository at this point in the history