Re: [v3 13/13] docs: iio: add documentation for BNO055 driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 22 Mar 2022 11:30:12 +0100
Andrea Merello <andrea.merello@xxxxxxxxx> wrote:

> [...]
> 
> > > +IIO attributes for unavailable measurements (e.g. Euler angles when fusion
> > > +mode is disabled) just read zero.  
> >
> > Hmm. Should probably return -EBUSY as 0 could be a valid value.
> >  
> 
> While it seems reasonable,  that can be easily done while reading from
> sysfs, but how do we handle this when reading from buffer?
> Right now both sysfs and buffer read zero from unused chans, which it
> is at least consistent..

Can't we refuse to start the buffer if we have a channel enabled that
makes no sense in the current mode?

If seems very odd to allow capture of 'nothing'.

Jonathan



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux