-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugins/dac_data_manager: Create iio buffer at the right moment
This prevents osc from crashing at startup. The idea behind the fix is the following: due to libiio v1.x API changes the creation of the iio_buffer cannot be done too early. It needs a iio_mask and at least one channel to be enabled. The need to create the iio_buffer early was just to read one attribute about alignment, and to read the attribute only once. The fix is to create the iio_buffer at the moment is needed and read the attribute right after the creation. Signed-off-by: Dan <[email protected]>
- Loading branch information
Showing
1 changed file
with
66 additions
and
59 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