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 damian-kurek-wizzdev committed Aug 29, 2024
1 parent de1c261 commit 570b93c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/clusters/on-off-server/on-off-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ Status OnOffServer::getOnOffValue(chip::EndpointId endpoint, bool * currentOnOff
* @param command Ver.: always
* @param initiatedByLevelChange Ver.: always
* @param forceSend Send value of the On/Off even when it is the same as current On/Off value.
* This parameter is useful at the start when you try to determine startup state of On/Off relay that does not store state after losing power
* This parameter is useful at the start when you try to determine startup state of On/Off relay that does not store state after
* losing power
*/
Status OnOffServer::setOnOffValue(chip::EndpointId endpoint, chip::CommandId command, bool initiatedByLevelChange, bool forceSend)
{
Expand All @@ -366,7 +367,6 @@ Status OnOffServer::setOnOffValue(chip::EndpointId endpoint, chip::CommandId com
else if (command == Commands::On::Id)
{
newValue = true;

}
// I guess that, I can only get ON/OFF at startup
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/clusters/on-off-server/on-off-server.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class OnOffServer
void updateOnOffTimeCommand(chip::EndpointId endpoint);
chip::Protocols::InteractionModel::Status getOnOffValue(chip::EndpointId endpoint, bool * currentOnOffValue);
chip::Protocols::InteractionModel::Status setOnOffValue(chip::EndpointId endpoint, chip::CommandId command,
bool initiatedByLevelChange, bool forceSend=false);
bool initiatedByLevelChange, bool forceSend = false);
chip::Protocols::InteractionModel::Status getOnOffValueForStartUp(chip::EndpointId endpoint, bool & onOffValueForStartUp);

bool HasFeature(chip::EndpointId endpoint, Feature feature);
Expand Down

0 comments on commit 570b93c

Please sign in to comment.