We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1af414b + e1a4a7b commit 02c57b9Copy full SHA for 02c57b9
src/channel.rs
@@ -40,7 +40,7 @@ pub enum ChannelType {
40
Accel = ffi::iio_chan_type_IIO_ACCEL,
41
AnglVel = ffi::iio_chan_type_IIO_ANGL_VEL,
42
Magn = ffi::iio_chan_type_IIO_MAGN,
43
- Ligtht = ffi::iio_chan_type_IIO_LIGHT,
+ Light = ffi::iio_chan_type_IIO_LIGHT,
44
Intensity = ffi::iio_chan_type_IIO_INTENSITY,
45
Proximity = ffi::iio_chan_type_IIO_PROXIMITY,
46
Temp = ffi::iio_chan_type_IIO_TEMP,
@@ -148,8 +148,7 @@ impl DataFormat {
148
8 => Some(TypeId::of::<i64>()),
149
_ => None,
150
}
151
- }
152
- else {
+ } else {
153
match nbytes {
154
1 => Some(TypeId::of::<u8>()),
155
2 => Some(TypeId::of::<u16>()),
0 commit comments