added getter fuctions to modecommand #35

Merged
lkoester merged 2 commits from mode_quick_fix into main 2023-02-16 16:37:29 +01:00
Showing only changes of commit 260ec364e2 - Show all commits

View File

@ -50,6 +50,22 @@ impl ModeCommand {
mode_submode,
}
}
pub fn address(&self) -> TargetId {
self.address
}
pub fn mode_submode(&self) -> ModeAndSubmode {
self.mode_submode
}
pub fn get_mode(&self) -> u32 {
self.mode_submode.mode
}
pub fn get_submode(&self) -> u16 {
self.mode_submode.submode
}
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]