added getter to mode and submode
This commit is contained in:
parent
cf9b12b1dc
commit
153659bb88
@ -35,6 +35,10 @@ impl ModeAndSubmode {
|
||||
submode: u16::from_be_bytes(buf[4..6].try_into().unwrap()),
|
||||
})
|
||||
}
|
||||
|
||||
pub fn mode(&self) -> u32 {self.mode}
|
||||
|
||||
pub fn submode(&self) -> u16 {self.submode}
|
||||
}
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
|
Loading…
Reference in New Issue
Block a user