Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and mideayanghui committed Nov 22, 2023
1 parent 42fe2c7 commit e84c384
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,16 @@ using List = chip::app::DataModel::List<T>;
using ModeTagStructType = chip::app::Clusters::detail::Structs::ModeTagStruct::Type;

static ExampleMicrowaveOvenModeDelegate * gMicrowaveOvenModeDelegate = nullptr;
static ModeBase::Instance * gMicrowaveOvenModeInstance = nullptr;
static ModeBase::Instance * gMicrowaveOvenModeInstance = nullptr;

CHIP_ERROR ExampleMicrowaveOvenModeDelegate::Init()
{
return CHIP_NO_ERROR;
}

// todo refactor code by making a parent class for all ModeInstance classes to reduce flash usage.
void ExampleMicrowaveOvenModeDelegate::HandleChangeToMode(uint8_t NewMode, ModeBase::Commands::ChangeToModeResponse::Type & response)
void ExampleMicrowaveOvenModeDelegate::HandleChangeToMode(uint8_t NewMode,
ModeBase::Commands::ChangeToModeResponse::Type & response)
{
response.status = to_underlying(ModeBase::StatusCode::kSuccess);
}
Expand Down

0 comments on commit e84c384

Please sign in to comment.