Skip to content

Commit

Permalink
update Microwave Oven Application and SDK code after reviewed
Browse files Browse the repository at this point in the history
  • Loading branch information
liangpy4 committed Nov 29, 2023
1 parent b5d680f commit f8733cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ ExampleMicrowaveOvenDevice::HandleSetCookingParametersCallback(Optional<uint8_t>
uint8_t reqCookMode;
if(cookMode.HasValue()){
reqCookMode = cookMode.Value();

}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Instance : public CommandHandlerInterface, public AttributeAccessInterface
* @param aOpStateInstance The pointer of Operational State Instance.
* @param aMicrowaveOvenModeInstance The pointer of Microwave Oven Mode Instance.
* Note: a MicrowaveOvenControl instance must live relying on an Operational State instance and a Microwave Oven Mode instance,
* caller should be initialized the 2 instances before initializing MicorwaveOvenControl instance.
* caller should be initialized that 2 instances before initializing MicorwaveOvenControl instance.
*/
Instance(Delegate * aDelegate, EndpointId aEndpointId, ClusterId aClusterId, Clusters::OperationalState::Instance * aOpStateInstance, Clusters::ModeBase::Instance * aMicrowaveOvenModeInstance);

Expand Down Expand Up @@ -184,8 +184,8 @@ bool IsCookTimeInRange(uint32_t cookTime);
/**
* @brief Check if the given cooking power is in range
* @param powerSetting power setting that given by user
* @param minCookPower the min power setting that defined via zap configuration
* @param maxCookPower the max power setting that defined via zap configuration
* @param minCookPower the min power setting that defined in application level
* @param maxCookPower the max power setting that defined in application level
*/
bool IsPowerSettingInRange(uint8_t powerSetting, uint8_t minCookPower, uint8_t maxCookPower);

Expand Down

0 comments on commit f8733cd

Please sign in to comment.