Skip to content

Commit

Permalink
Fix DegradationDirection Get
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinpan1 committed Jun 17, 2024
1 parent 0a0f0e6 commit bfb6d9b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,12 @@ ChefResourceMonitorInstance::ExternalAttributeRead(const EmberAfAttributeMetadat
bufWriter.Put32(lastChangedTime.IsNull() ? 0 : lastChangedTime.Value());
}
break;
case HepaFilterMonitoring::Attributes::DegradationDirection::Id:
case HepaFilterMonitoring::Attributes::DegradationDirection::Id: {
ResourceMonitoring::DegradationDirectionEnum degradationDirection = GetDegradationDirection();
// The underlying type of ResourceMonitoring::DegradationDirectionEnum is uint8_t
*buffer = to_underlying(degradationDirection);
}
break;
default:
ChipLogError(Zcl, "Unsupported External Attribute Read: %d", static_cast<int>(attributeId));
ret = Protocols::InteractionModel::Status::UnsupportedRead;
Expand Down

0 comments on commit bfb6d9b

Please sign in to comment.