Skip to content

Commit

Permalink
Allow users to not specify value change behaviour in GetSupportedDM r…
Browse files Browse the repository at this point in the history
…esponse

Signed-off-by: Daniel Egger <[email protected]>
  • Loading branch information
therealprof committed Sep 16, 2024
1 parent e230914 commit 5032149
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/usp_builder/getsupporteddm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,6 @@ impl GSDMParamResult {
if matches!(self.value_type, ParamValueType::PARAM_UNKNOWN) {
anyhow::bail!("Cannot build a Supported Param Result without a specified value type");
}
if matches!(self.value_change, ValueChangeType::VALUE_CHANGE_UNKNOWN) {
anyhow::bail!(
"Cannot build a Supported Param Result without a specified value change behaviour"
);
}
Ok(SupportedParamResult {
param_name: self.param_name.into(),
access: self.access,
Expand Down

0 comments on commit 5032149

Please sign in to comment.