#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[cfg_attr(feature = "defmt-03", derive(defmt::Format))]
pub enum Channel {
Red,
Ox,
Nh3,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[cfg_attr(feature = "defmt-03", derive(defmt::Format))]
pub enum Gas {
CarbonMonoxide,
NitrogenDioxide,
Ammonia,
Ethanol,
Hydrogen,
Methane,
Propane,
Isobutane,
}
impl Gas {
pub fn channel(self) -> Channel {
match self {
Gas::CarbonMonoxide => Channel::Red,
Gas::NitrogenDioxide => Channel::Ox,
Gas::Ammonia => Channel::Nh3,
Gas::Ethanol => Channel::Red,
Gas::Hydrogen => Channel::Red,
Gas::Methane => Channel::Red,
Gas::Propane => Channel::Red,
Gas::Isobutane => Channel::Red,
}
}
}