Skip to content

Fix biastee settings to return actual device state#68

Open
aurimasniekis wants to merge 1 commit into
pothosware:masterfrom
aurimasniekis:biastee-settings
Open

Fix biastee settings to return actual device state#68
aurimasniekis wants to merge 1 commit into
pothosware:masterfrom
aurimasniekis:biastee-settings

Conversation

@aurimasniekis
Copy link
Copy Markdown

This PR replaces the static "false" return values for biastee_tx and
biastee_rx in readSetting() with calls to bladerf_get_bias_tee().

Changes

  • Query the device for the current bias tee state on both TX and RX channels
  • Return "true" or "false" based on the actual hardware state
  • Add error handling and logging when bladerf_get_bias_tee() fails

Why

Previously, these settings always returned "false", regardless of the
actual hardware configuration. This resulted in incorrect state reporting
to users and higher-level applications.

Impact

  • Fixes incorrect behavior in settings reporting
  • Aligns readSetting() with real device state
  • Improves reliability for applications relying on bias tee status

Replace the static `false` values for `biastee_rx` and `biastee_tx`
with calls to `bladerf_get_bias_tee()` so readSetting() reflects the
device's current configuration and reports errors from the driver.
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.

1 participant