fixed typo

This commit is contained in:
2025-12-14 21:05:03 +01:00
parent c52b21d951
commit 6691c2e38c

View File

@@ -80,7 +80,7 @@ pub enum Channel {
}
impl Channel {
pub fn get_device_for_chanel(&self) -> Device {
pub fn get_device_for_channel(&self) -> Device {
match self {
Channel::A | Channel::B | Channel::C | Channel::D | Channel::E | Channel::F => {
Device::Uv
@@ -491,7 +491,7 @@ where
}
pub async fn read_raw_measurement(&mut self, channel: Channel) -> Result<u16, Error<I::Error>> {
let dev = channel.get_device_for_chanel();
let dev = channel.get_device_for_channel();
self.select_device(dev).await?;
self.read_raw_channel(channel.get_raw_address()).await
}
@@ -500,7 +500,7 @@ where
&mut self,
channel: Channel,
) -> Result<f32, Error<I::Error>> {
let dev = channel.get_device_for_chanel();
let dev = channel.get_device_for_channel();
self.select_device(dev).await?;
self.read_calibrated_channel(channel.get_cal_address())