Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calling iio_writedev without any channels specified will enable all channels of the device. Regardless whether the channel is an input or output channel. Change this so that input channels are skipped. Similarly ignore explicitly specified channels if they are an input channel. The main advantage of this change is that iio_writedev will now exit with an error when it is accidentally called on an IIO input device, since no output channels will be found. But it also future-proofs the application for a time when there is support for devices which have both input and output channels. Signed-off-by: Lars-Peter Clausen <[email protected]>
- Loading branch information