File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ struct extra_dev_info {
72
72
gfloat * * channels_data_copy ;
73
73
GSList * plots_sample_counts ;
74
74
struct iio_stream * stream ;
75
+ struct iio_channels_mask * channels_mask ;
75
76
};
76
77
77
78
struct buffer {
Original file line number Diff line number Diff line change @@ -1863,6 +1863,7 @@ static void init_device_list(struct iio_context *_ctx)
1863
1863
struct extra_dev_info * dev_info = calloc (1 , sizeof (* dev_info ));
1864
1864
iio_device_set_data (dev , dev_info );
1865
1865
dev_info -> input_device = is_input_device (dev );
1866
+ dev_info -> channels_mask = iio_create_channels_mask (nb_channels );
1866
1867
1867
1868
for (j = 0 ; j < nb_channels ; j ++ ) {
1868
1869
struct iio_channel * ch = iio_device_get_channel (dev , j );
@@ -1898,6 +1899,8 @@ static void cleanup_device_list(struct iio_context *_ctx)
1898
1899
}
1899
1900
1900
1901
dev_info = iio_device_get_data (dev );
1902
+ if (dev_info -> channels_mask )
1903
+ iio_channels_mask_destroy (dev_info -> channels_mask );
1901
1904
free (dev_info );
1902
1905
iio_device_set_data (dev , NULL );
1903
1906
}
You can’t perform that action at this time.
0 commit comments