continue mode tree helper

This commit is contained in:
2024-12-04 16:59:09 +01:00
committed by Robin Mueller
parent b07b8d6347
commit d4339f3ea3
2 changed files with 77 additions and 18 deletions

View File

@ -129,6 +129,8 @@ pub struct TargetedModeRequest {
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub enum ModeReply {
/// Mode information. Can be used to notify other components of changed modes.
ModeInfo(ModeAndSubmode),
/// Reply to a mode request to confirm the commanded mode was reached.
ModeReply(ModeAndSubmode),
// Can not reach the commanded mode. Contains a reason as a [ResultU16].