Skip to content

Commit 570b93c

Browse files
Restyled by clang-format
1 parent de1c261 commit 570b93c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/clusters/on-off-server/on-off-server.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@ Status OnOffServer::getOnOffValue(chip::EndpointId endpoint, bool * currentOnOff
341341
* @param command Ver.: always
342342
* @param initiatedByLevelChange Ver.: always
343343
* @param forceSend Send value of the On/Off even when it is the same as current On/Off value.
344-
* 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
344+
* This parameter is useful at the start when you try to determine startup state of On/Off relay that does not store state after
345+
* losing power
345346
*/
346347
Status OnOffServer::setOnOffValue(chip::EndpointId endpoint, chip::CommandId command, bool initiatedByLevelChange, bool forceSend)
347348
{
@@ -366,7 +367,6 @@ Status OnOffServer::setOnOffValue(chip::EndpointId endpoint, chip::CommandId com
366367
else if (command == Commands::On::Id)
367368
{
368369
newValue = true;
369-
370370
}
371371
// I guess that, I can only get ON/OFF at startup
372372
}

src/app/clusters/on-off-server/on-off-server.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class OnOffServer
6464
void updateOnOffTimeCommand(chip::EndpointId endpoint);
6565
chip::Protocols::InteractionModel::Status getOnOffValue(chip::EndpointId endpoint, bool * currentOnOffValue);
6666
chip::Protocols::InteractionModel::Status setOnOffValue(chip::EndpointId endpoint, chip::CommandId command,
67-
bool initiatedByLevelChange, bool forceSend=false);
67+
bool initiatedByLevelChange, bool forceSend = false);
6868
chip::Protocols::InteractionModel::Status getOnOffValueForStartUp(chip::EndpointId endpoint, bool & onOffValueForStartUp);
6969

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

0 commit comments

Comments
 (0)