Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

Wrong way to create buffer size #5

Open
lafiezh opened this issue Jul 23, 2018 · 1 comment
Open

Wrong way to create buffer size #5

lafiezh opened this issue Jul 23, 2018 · 1 comment

Comments

@lafiezh
Copy link

lafiezh commented Jul 23, 2018

In libiio_if.m file I find something wrong related to buffer creation.

269.   % Create the IIO buffer used to write data
           obj.iio_buf_size = obj.data_ch_size * obj.iio_scan_elm_no;
                obj.iio_buffer = calllib(obj.libname, 'iio_device_create_buffer', obj.iio_dev,...
                                         obj.data_ch_size, 1);

In functions of initOutputDataChannels, also in writeData function. Please check it.

@lafiezh
Copy link
Author

lafiezh commented Jul 23, 2018

ps: I think it should be like this

269.   % Create the IIO buffer used to write data
           obj.iio_buf_size = obj.data_ch_size * obj.iio_scan_elm_no;
                obj.iio_buffer = calllib(obj.libname, 'iio_device_create_buffer', obj.iio_dev,...
                                        obj.iio_buf_size, 1);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant