-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugins: adrv9002: constrain RSSI reads
With the changes in the device driver API, reading the RSSI on a channel that's not enabled will trow an error. Hence, instead of flooding the device with error's (and the kernel log), don't read the RSSI for channels that are not enabled. With the above, as we always need to read the ensm widget, make use iio_widget_update_value() to update it in case port enable is set to pin (and hence avoiding another call into the device). Signed-off-by: Nuno Sa <[email protected]>
- Loading branch information
Showing
1 changed file
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters