Skip to content

Commit 02c57b9

Browse files
authored
Merge pull request #32 from sh9heer/channels
Typo correction of channel Light in ChannelType
2 parents 1af414b + e1a4a7b commit 02c57b9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/channel.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub enum ChannelType {
4040
Accel = ffi::iio_chan_type_IIO_ACCEL,
4141
AnglVel = ffi::iio_chan_type_IIO_ANGL_VEL,
4242
Magn = ffi::iio_chan_type_IIO_MAGN,
43-
Ligtht = ffi::iio_chan_type_IIO_LIGHT,
43+
Light = ffi::iio_chan_type_IIO_LIGHT,
4444
Intensity = ffi::iio_chan_type_IIO_INTENSITY,
4545
Proximity = ffi::iio_chan_type_IIO_PROXIMITY,
4646
Temp = ffi::iio_chan_type_IIO_TEMP,
@@ -148,8 +148,7 @@ impl DataFormat {
148148
8 => Some(TypeId::of::<i64>()),
149149
_ => None,
150150
}
151-
}
152-
else {
151+
} else {
153152
match nbytes {
154153
1 => Some(TypeId::of::<u8>()),
155154
2 => Some(TypeId::of::<u16>()),

0 commit comments

Comments
 (0)